:root {
    --bg-main: #050505;
    --bg-card: #121212;
    --border-color: #2C2C2C;
    --primary: #E60000;
    --text-main: #FFFFFF;
    --text-muted: #808080;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

.rn-wrapper {
    max-width: 1200px; /* Zwiększone z 900px, żeby pomieścić sidebar */
    margin: 140px auto 80px;
    padding: 0 20px;
}

/* --- NAGŁÓWEK --- */
.rn-hero {
    text-align: center;
    margin-bottom: 50px;
}
.rn-badge-top {
    display: inline-block;
    background: rgba(230, 0, 0, 0.1);
    color: var(--primary);
    border: 1px solid rgba(230, 0, 0, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}
.rn-main-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}
.text-red { color: var(--primary); }
.rn-main-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- LAYOUT GRID (Dwie Kolumny) --- */
.rn-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 części na feed, 1 część na sidebar */
    gap: 30px;
    align-items: start;
}

/* --- KARTA WYDARZENIA (LEWA STRONA) --- */
.rn-feed {
    min-width: 0; /* Zapobiega wychodzeniu poza grid */
}

.rn-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.8);
}
.hot-drop {
    border-top: 2px solid var(--primary);
}
.rn-card-glow {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%; height: 100px;
    background: radial-gradient(ellipse, rgba(230,0,0,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.rn-card-header {
    padding: 40px 40px 20px 40px;
    border-bottom: 1px solid var(--border-color);
}
.rn-tags {
    display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap;
}
.rn-tag {
    padding: 6px 14px; border-radius: 8px; font-size: 0.8rem; font-weight: 700;
}
.rn-tag.hot {
    background: var(--primary); color: white;
    box-shadow: 0 0 15px rgba(230,0,0,0.4);
}
.rn-tag.date {
    background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border-color);
}
.rn-article-title {
    font-size: 2.2rem; margin: 0; font-weight: 800; line-height: 1.2;
}

/* --- ZAWARTOŚĆ ARTYKUŁU --- */
.rn-content { padding: 40px; }

.rn-block {
    margin-bottom: 45px;
}
.rn-block-title {
    display: flex; align-items: center; gap: 15px; margin-bottom: 15px;
}
.rn-icon-box {
    width: 45px; height: 45px; border-radius: 12px; background: rgba(230,0,0,0.1);
    color: var(--primary); display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; border: 1px solid rgba(230,0,0,0.2); flex-shrink: 0;
}
.rn-block-title h3 {
    font-size: 1.4rem; margin: 0; font-weight: 700; color: #fff;
}
.rn-text {
    color: #ccc; font-size: 1rem; line-height: 1.6; margin-bottom: 15px;
}

/* Alerty Info */
.rn-alert {
    background: rgba(255,255,255,0.03); border-left: 4px solid var(--primary);
    padding: 15px 20px; border-radius: 0 10px 10px 0; color: var(--text-muted); font-size: 0.9rem;
    line-height: 1.5;
}

/* KOD KUPONU (Główny) */
.rn-code-box {
    display: flex; align-items: center; justify-content: space-between;
    background: #000; border: 1px dashed #555; border-radius: 12px;
    padding: 15px 25px; margin: 20px 0;
}
.code-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; margin-bottom: 4px;}
.code-value { font-family: monospace; font-size: 1.8rem; font-weight: 900; color: #fff; letter-spacing: 2px;}
.rn-copy-btn {
    background: var(--primary); color: white; border: none; padding: 12px 24px;
    border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.3s; font-family: 'Poppins';
}
.rn-copy-btn:hover { background: #ff1a1a; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(230,0,0,0.3);}

/* SIATKA KUPONÓW TICKETÓW */
.rn-tickets-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 15px; margin-bottom: 15px;
}
.rn-ticket {
    background: linear-gradient(135deg, #1A1A1A, #121212);
    border: 1px solid var(--border-color); border-radius: 10px; padding: 15px; text-align: center;
    position: relative; overflow: hidden;
}
.rn-ticket::before {
    content: ''; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; background: var(--bg-card); border-radius: 50%; border-right: 1px solid var(--border-color);
}
.rn-ticket .val { color: var(--primary); font-size: 1.5rem; font-weight: 900; margin-bottom: 5px; }
.rn-ticket .cond { color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; font-weight: 600;}

/* TIERY / NAGRODY */
.rn-tiers { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.rn-tier {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255,255,255,0.02); border: 1px solid var(--border-color); padding: 15px 20px; border-radius: 10px;
}
.rn-tier span { color: #ccc; font-weight: 600; }
.rn-tier strong { color: #00E676; font-size: 1.2rem; font-weight: 800; }
.rn-tier.max { border-color: #00E676; background: rgba(0, 230, 118, 0.05); }

/* ZASADY - Danger Zone */
.rn-rules {
    margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border-color);
}
.rn-rules h4 { color: #FFD700; margin: 0 0 15px 0; font-size: 1.1rem; }
.rn-rules ul { color: var(--text-muted); font-size: 0.9rem; padding-left: 20px; margin: 0; line-height: 1.6; }

.rn-micro-text { font-size: 0.8rem; color: var(--text-muted); margin-top: 15px; line-height: 1.5;}


/* ==========================================
   SIDEBAR (PRAWA STRONA Z KUPONAMI)
   ========================================== */
.rn-sidebar {
    position: sticky;
    top: 120px; /* Przypina sidebar przy scrollowaniu */
}

.rn-sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.widget-title {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    font-weight: 700;
}

.widget-title i {
    color: var(--primary);
}

.rn-side-coupon {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.rn-side-coupon:last-child {
    margin-bottom: 0;
}

.rn-side-coupon:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.04);
}

.side-coupon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.side-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(230, 0, 0, 0.1);
    color: var(--primary);
    border: 1px solid rgba(230, 0, 0, 0.3);
}

.side-badge.luxury {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
    border-color: rgba(155, 89, 182, 0.3);
}

.side-badge.gift {
    background: rgba(0, 230, 118, 0.1);
    color: #00E676;
    border-color: rgba(0, 230, 118, 0.3);
}

.side-coupon-code {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    text-align: center;
    margin: 10px 0;
}

.side-coupon-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    text-align: center;
    margin-bottom: 15px;
}

/* WRAper na dwa przyciski w sidebarze */
.side-action-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}

.rn-copy-btn.side {
    flex: 1; /* Zajmuje resztę dostępnego miejsca */
    padding: 10px;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.rn-copy-btn.side:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    box-shadow: none;
    transform: none;
}

/* Mały przycisk obok Kopiuj Kod */
.rn-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 44px; /* Kwadratowy kształt */
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.rn-link-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.rn-link-btn img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
}

/* Stan skopiowania wywoływany przez JS */
.rn-copy-btn.copied {
    background: #00E676 !important;
    border-color: #00E676 !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.4) !important;
}


/* ==========================================
   RESPONSYWNOŚĆ (RWD)
   ========================================== */
@media (max-width: 992px) {
    .rn-layout-grid {
        grid-template-columns: 1fr; /* Na mniejszych ekranach układ układa się jedno pod drugim */
    }
    .rn-sidebar {
        position: static;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .rn-wrapper { margin-top: 100px; }
    .rn-main-title { font-size: 3rem; }
    .rn-card-header { padding: 30px 20px; }
    .rn-article-title { font-size: 1.6rem; }
    .rn-content { padding: 25px 20px; }
    .rn-code-box { flex-direction: column; gap: 15px; text-align: center; }
    .rn-copy-btn { width: 100%; }
    .rn-block-title h3 { font-size: 1.2rem; }
}