/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.5;
}
.container { 
    max-width: 1300px; 
    margin: 0 auto; 
    padding: 30px 20px; 
}

/* ===== HOME PAGE HEADER ===== */
.header-home { 
    text-align: center; 
    margin-bottom: 30px; 
    border-bottom: 1px solid #333; 
    padding-bottom: 20px; 
}
.logo { 
    font-size: 2.8rem; 
    font-weight: 700; 
    letter-spacing: -2px; 
    color: #ffffff; 
}
.logo span { color: #d4af37; }
.pen-name { 
    color: #d4af37; 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    padding: 8px 0; 
    border-top: 1px solid #333; 
    border-bottom: 1px solid #333; 
    display: inline-block; 
    margin: 12px 0; 
}
.subhead { color: #aaa; font-size: 0.9rem; }

/* ===== DECK PAGE HEADER ===== */
.header-deck {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}
.back-btn {
    color: #d4af37;
    text-decoration: none;
    font-size: 1rem;
    white-space: nowrap;
}
.back-btn i { margin-right: 5px; }
.deck-title {
    color: #d4af37;
    font-size: 1.3rem;
    margin: 0;
    text-align: center;
}
.header-spacer {
    width: 80px;
    visibility: hidden;
}

/* ===== STATS BAR (HOME) ===== */
.stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
    color: #ccc;
    font-size: 0.8rem;
}
.stat-item i { color: #d4af37; margin-right: 4px; }

/* ===== RANDOM BUTTON (HOME) ===== */
.random-btn {
    background: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    margin: 20px auto;
    display: inline-block;
}
.random-btn:hover {
    background: #d4af37;
    color: black;
}

/* ===== DECK GRID (HOME) ===== */
.deck-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 20px; 
    margin: 30px 0; 
}
.deck-card { 
    background: #121212; 
    border: 1px solid #2a2a2a; 
    padding: 20px; 
    transition: 0.2s; 
}
.deck-card:hover { border-color: #d4af37; background: #1a1a1a; }
.deck-number { color: #777; font-size: 0.7rem; letter-spacing: 1px; margin-bottom: 5px; }
.deck-card-title { font-size: 1.3rem; font-weight: 600; color: white; margin-bottom: 8px; }
.deck-desc { color: #aaa; font-size: 0.8rem; margin-bottom: 15px; line-height: 1.4; }

.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
    padding: 6px 12px; 
    text-decoration: none; 
    font-weight: 500;
    display: inline-flex; 
    align-items: center; 
    gap: 4px;
    border: 1px solid; 
    transition: 0.2s; 
    font-size: 0.8rem;
}
.btn-view { background: transparent; color: white; border-color: #555; }
.btn-view:hover { background: #d4af37; color: black; border-color: #d4af37; }
.btn-pdf { background: #d4af37; color: black; border: none; }
.btn-pdf:hover { background: #e5c158; color: black; }

/* ===== FUTURE DECKS ===== */
.future-title {
    text-align: center;
    margin: 40px 0 20px;
}
.future-title h2 {
    color: #d4af37;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 2px;
}
.future-title p {
    color: #777;
    font-size: 0.8rem;
    margin-top: 5px;
}
.future-decks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0 40px;
}
.future-card {
    background: #0d0d0d;
    padding: 15px;
    border: 1px dashed #333;
    color: #666;
    transition: 0.2s;
}
.future-card:hover { border-color: #d4af37; background: #121212; }
.future-card h4 { color: #d4af37; font-size: 0.9rem; margin-bottom: 6px; }
.future-card p { font-size: 0.75rem; line-height: 1.3; }

/* ===== SUPPORT SECTION ===== */
.support-section {
    margin: 40px 0 30px;
    padding: 30px;
    background: #0d0d0d;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    text-align: center;
}
.support-section h2 {
    color: #d4af37;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.support-intro {
    color: #aaa;
    font-size: 0.8rem;
    max-width: 500px;
    margin: 0 auto 25px;
}
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}
.support-card {
    background: #121212;
    padding: 18px 15px;
    border: 1px solid #2a2a2a;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 180px;
}
.support-card:hover { border-color: #d4af37; }
.support-card i { color: #d4af37; font-size: 1.8rem; margin-bottom: 8px; }
.support-card h3 { color: white; font-size: 1rem; margin-bottom: 8px; font-weight: 500; }
.support-address { 
    color: #d4af37; 
    font-size: 0.7rem; 
    word-break: break-all; 
    margin-bottom: 12px;
    background: #1a1a1a;
    padding: 4px 8px;
    border-radius: 4px;
}
.support-btn {
    background: #d4af37;
    color: black;
    border: none;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    margin-top: auto;
    transition: 0.2s;
    width: 100%;
    max-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}
.support-btn:hover {
    background: #e5c158;
    transform: scale(1.02);
}
.support-btn i { color: black; font-size: 0.8rem; margin: 0; }
.support-note {
    color: #666;
    font-size: 0.7rem;
    margin: 8px 0;
}

/* ===== DISCLAIMER ===== */
.disclaimer {
    background: #d4af37;
    border-left: 3px solid #ff0000;
    padding: 15px;
    margin: 30px 0 20px;
    font-size: 0.75rem;
    color: #000000;
    border-radius: 3px;
}
.disclaimer a { 
    color: #000000; 
    text-decoration: underline;
    font-weight: 600;
}

/* ===== DECK INFO ===== */
.deck-info { 
    text-align: center; 
    color: #aaa; 
    margin-bottom: 30px; 
    font-size: 0.9rem; 
}

/* ===== SWIPER ===== */
.swiper {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 0 30px 0;
    border-radius: 12px;
    position: relative;
}
.swiper-slide {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 675 / 447;
    object-fit: cover;
}

/* ===== CAPTION BAR ===== */
.caption-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #1a1a1a;
    border-radius: 8px;
    width: 100%;
    margin-top: 10px;
}

/* ===== INFO BUTTON ===== */
.info-btn {
    background: #d4af37;
    color: black;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
    flex-shrink: 0;
}
.info-btn:hover {
    background: #e5c158;
    transform: scale(1.05);
}

/* ===== CARD TITLE ===== */
.card-title {
    color: #d4af37;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== PAGINATION DOTS ===== */
.swiper-pagination {
    position: relative !important;
    bottom: 0 !important;
    margin-top: 10px;
    text-align: right !important;
}
.swiper-pagination-bullet {
    background: #d4af37 !important;
    opacity: 0.5 !important;
    width: 10px !important;
    height: 10px !important;
    margin: 0 5px !important;
}
.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: #d4af37 !important;
}

/* ===== LAW PANEL (DECK PAGE) ===== */
.law-panel {
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    width: 100%;
    margin-top: 10px;
    border-radius: 8px;
}
.law-panel.show {
    max-height: 200px;
    padding: 15px;
}
.law-panel p {
    margin: 5px 0;
    font-size: 0.8rem;
    color: #ccc;
}
.law-panel strong { color: #d4af37; }
.law-panel a {
    color: #d4af37;
    text-decoration: underline;
}

/* ===== DECK NAVIGATION ===== */
.deck-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0 20px;
}
.nav-btn {
    color: #d4af37;
    text-decoration: none;
    border: 1px solid #d4af37;
    padding: 8px 20px;
    border-radius: 32px;
    font-size: 0.9rem;
    transition: 0.2s;
}
.nav-btn:hover {
    background: #d4af37;
    color: black;
}

/* ===== (SHUFFLE + PDF) ===== */
.button-group {
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin: 30px 0; 
    flex-wrap: wrap;
}
.btn-shuffle {
    background: transparent; 
    color: #d4af37; 
    border: 2px solid #d4af37;
    padding: 10px 10px; 
    text-decoration: none; 
    font-weight: bold; 
    cursor: pointer;
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 0.9rem;
    border-radius: 32px;
}
.btn-shuffle:hover { 
    background: #d4af37; 
    color: black; 
}
.btn-download {
    background: #d4af37;
    color: black;
    padding: 10px 24px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}
.btn-download:hover {
    background: #e5c158;
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}
.modal-content {
    background-color: #1e1e1e;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #d4af37;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}
.close {
    color: #d4af37;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover {
    color: #e5c158;
}
.modal-disclaimer {
    margin-top: 20px;
    padding: 15px;
    background: #0a0a0a;
    border-left: 3px solid #d4af37;
    font-style: italic;
    color: #d4af37;
    text-align: center;
    font-size: 0.85rem;
}
input, textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background: #0a0a0a;
    border: 1px solid #333;
    color: white;
    border-radius: 4px;
}
button[type="submit"] {
    background: #d4af37;
    color: black;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
}
.contributor-list {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}
.contributor-list li {
    color: #ccc;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}
.contributor-list li:before {
    content: "•";
    color: #d4af37;
    position: absolute;
    left: 0;
}

/* ===== FOOTER STYLES ===== */
.site-footer {
    margin-top: 50px;
    padding: 30px 20px 20px;
    border-top: 2px solid #333;
    background: #0d0d0d;
    border-radius: 16px 16px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-section h4 {
    color: #d4af37;
    margin-bottom: 15px;
    font-size: 1rem;
}
.footer-section ul {
    list-style: none;
    padding-left: 0;
}
.footer-section li {
    margin-bottom: 8px;
}
.footer-section a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
}
.footer-section a:hover {
    color: #d4af37;
}
.footer-section a i {
    margin-right: 5px;
}
.paywall-link {
    display: inline-block;
    margin: 10px 0;
    color: #d4af37;
    border: 1px solid #d4af37;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
}
.share-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 15px;
}
.share-icon {
    color: #d4af37;
    font-size: 1.2rem;
    transition: 0.2s;
}
.share-icon:hover {
    color: #e5c158;
    transform: scale(1.1);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.75rem;
}

/* ===== SCROLL BUTTON ===== */
#scrollBtn {
    display: none; 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    z-index: 99;
    border: 2px solid #d4af37; 
    background: #0a0a0a; 
    color: #d4af37;
    cursor: pointer; 
    width: 36px; 
    height: 36px; 
    border-radius: 50%;
    font-size: 1.2rem; 
    align-items: center; 
    justify-content: center;
}
#scrollBtn:hover { 
    background: #d4af37; 
    color: black; 
}

/* ===== QUOTE STYLES ===== */
.quote-french {
    color: #d4af37;
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 5px;
}
.quote-author {
    color: #aaa;
    font-size: 0.8rem;
    text-align: center;
    font-style: italic;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .deck-navigation {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .header-deck {
        flex-direction: column;
        gap: 15px;
    }
    .header-spacer {
        display: none;
    }
    .modal-content {
        padding: 20px;
        margin: 10% auto;
    }
}