/* ============================================
   COMMISSIONS PAGE — "The Pact" theme
   Extends styles.css tokens. Load AFTER styles.css.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Quicksand:wght@300;400;500;600;700&display=swap');

:root {
    --wax-gold: #c9962c;
    --wax-gold-bright: #f0c15c;
    --parchment-shadow: #150000;
    --card-bg: rgba(20, 2, 2, 0.72);
    --ink: #f3e6d8;
}

/* ---------- Hero / Seal ---------- */

.comm-hero {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 2.5rem;
    background-color: rgba(0, 0, 0, 0.55);
    border-radius: 15px;
    border: 1px solid var(--accent-red);
    box-shadow: 0 0 20px var(--glow-color);
    position: relative;
}

.comm-seal {
    width: 110px;
    height: 110px;
    margin: 0.5rem auto 1.25rem;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ff4d4d, var(--primary-red) 60%, #2a0000 100%);
    border: 3px solid var(--wax-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px var(--glow-color), inset 0 0 15px rgba(0,0,0,0.5);
    animation: sealPulse 3s infinite ease-in-out;
}

.comm-seal i {
    font-size: 2.75rem;
    color: var(--wax-gold-bright);
    text-shadow: 0 0 10px rgba(0,0,0,0.6);
}

@keyframes sealPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.comm-hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.6rem;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.comm-title {
    color: var(--wax-gold-bright);
    text-shadow: 0 0 8px rgba(255,51,51,0.6), 0 0 2px rgba(0,0,0,0.8);
}

.comm-hero .comm-tagline {
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
    opacity: 0.9;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--accent-red);
    border-radius: 30px;
    transition: all 0.3s ease;
    opacity: 0.85;
    margin-bottom: 2rem;
}

.back-home:hover {
    background: rgba(139,0,0,0.35);
    box-shadow: 0 0 12px var(--glow-color);
    opacity: 1;
}

/* ---------- Status Banner ---------- */

.status-banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.status-chip {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 0.6rem 1.3rem;
    border-radius: 30px;
    border: 1px solid var(--wax-gold);
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.status-open .status-dot { background: #3ddc84; box-shadow: 0 0 8px #3ddc84; }
.status-closed .status-dot { background: #ff3333; box-shadow: 0 0 8px #ff3333; }

/* ---------- Generic contract section ---------- */

.contract-section {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 2.25rem;
    margin-bottom: 2.5rem;
    border: 1px solid var(--accent-red);
    box-shadow: 0 0 15px rgba(255,0,0,0.25);
    position: relative;
}

.contract-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.7rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.contract-section h2 i {
    color: var(--wax-gold-bright);
}

.section-sub {
    opacity: 0.75;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.contract-section h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--wax-gold-bright);
}

.contract-section p, .contract-section li {
    line-height: 1.7;
    font-size: 0.98rem;
}

.contract-section ul {
    list-style: none;
    padding-left: 0;
}

.contract-section ul li {
    padding-left: 1.4rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.contract-section ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent-red);
}

/* ---------- Pricing tables ---------- */

.price-table-wrap {
    overflow-x: auto;
    margin: 1rem 0 1.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255,51,51,0.35);
}

table.price-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
    background: rgba(0,0,0,0.35);
}

table.price-table caption {
    caption-side: top;
    text-align: left;
    font-family: 'Cinzel', serif;
    padding: 0.75rem 1rem;
    color: var(--wax-gold-bright);
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,51,51,0.3);
}

table.price-table th, table.price-table td {
    padding: 0.85rem 1.1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 0.92rem;
}

table.price-table th {
    font-family: 'Cinzel', serif;
    background: rgba(139,0,0,0.35);
    color: var(--text-color);
    font-weight: 600;
    letter-spacing: 0.3px;
}

table.price-table td:first-child, table.price-table th:first-child {
    text-align: left;
    font-weight: 600;
}

table.price-table tr:hover td {
    background: rgba(255,51,51,0.08);
}

.specialty-card {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(139,0,0,0.35), rgba(0,0,0,0.4));
    border: 1px solid var(--wax-gold);
    border-radius: 14px;
    padding: 1.5rem;
    margin: 1rem 0 2rem;
    box-shadow: 0 0 18px rgba(255,0,0,0.25);
}

.specialty-card .specialty-thumb {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    background: linear-gradient(145deg, #1a0000, #3d0000);
    cursor: zoom-in;
}

.specialty-card .specialty-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.specialty-card .specialty-info {
    flex: 1;
    min-width: 200px;
}

.specialty-card h3 {
    margin: 0 0 0.4rem;
}

.specialty-card .specialty-price {
    font-family: 'Cinzel', serif;
    color: var(--wax-gold-bright);
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.specialty-card .specialty-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--accent-red);
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.specialty-card .specialty-link:hover {
    background: rgba(139,0,0,0.4);
    box-shadow: 0 0 12px var(--glow-color);
}

@media screen and (max-width: 600px) {
    .specialty-card { flex-direction: column; text-align: center; }
}

.price-note {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.table-note {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

/* ---------- Two-column will/won't draw ---------- */

.draw-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.draw-col {
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
}

.draw-col.yes {
    background: rgba(61, 220, 132, 0.07);
    border-color: rgba(61, 220, 132, 0.35);
}

.draw-col.no {
    background: rgba(255, 51, 51, 0.07);
    border-color: rgba(255, 51, 51, 0.35);
}

.draw-col h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.draw-col.yes h3 { color: #3ddc84; }
.draw-col.no h3 { color: #ff5b5b; }

.draw-col ul li::before { content: none; }

.draw-col.yes li::before { content: '✔'; color: #3ddc84; position: absolute; left: 0; }
.draw-col.no li::before { content: '✖'; color: #ff5b5b; position: absolute; left: 0; }

/* ---------- Steps (form / order process) ---------- */

.contract-steps {
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contract-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--wax-gold);
}

.contract-step .num {
    counter-increment: step;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--wax-gold-bright);
    font-size: 1.3rem;
    min-width: 2rem;
}

.contract-step .num::before {
    content: counter(step);
}

/* ---------- Age gate banner ---------- */

.age-gate {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(139,0,0,0.25);
    border: 1px solid var(--accent-red);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-top: 1rem;
}

.age-gate i {
    font-size: 2rem;
    color: var(--accent-red);
}

/* ---------- Gallery ---------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(255,51,51,0.3);
    box-shadow: 0 0 12px rgba(255,0,0,0.2);
    background: linear-gradient(145deg, #1a0000, #3d0000);
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: filter 0.3s ease;
}

.gallery-item::after {
    content: attr(data-caption);
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: var(--text-color);
    font-size: 0.8rem;
    padding: 1.5rem 0.75rem 0.6rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item::before {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: var(--wax-gold-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.gallery-item:hover img {
    filter: brightness(0.8);
}

.gallery-item:hover::after,
.gallery-item:hover::before {
    opacity: 1;
}

/* ---------- Lightbox ---------- */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--wax-gold);
    box-shadow: 0 0 40px rgba(255,0,0,0.5);
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--text-color);
    font-size: 0.95rem;
    opacity: 0.85;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.75rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 1;
    color: var(--accent-red);
}

/* ---------- Support / Ko-fi & VGen ---------- */

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.support-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,51,51,0.3);
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.support-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 20px rgba(255,0,0,0.5);
    border-color: var(--wax-gold);
}

.support-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 20px;
    background: rgba(255,255,255,0.92);
    padding: 12px;
}

.support-card .support-label {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
}

.support-card .support-sub {
    font-size: 0.8rem;
    opacity: 0.7;
}

.support-card.coming-soon {
    position: relative;
    opacity: 0.9;
}

.support-card.coming-soon .badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--wax-gold);
    color: #1a0000;
    font-size: 0.65rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 30px;
    letter-spacing: 0.5px;
}

/* ---------- Footer note ---------- */

.contract-footer-note {
    text-align: center;
    opacity: 0.7;
    font-size: 0.85rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 768px) {
    .draw-columns { grid-template-columns: 1fr; }
    .comm-hero h1 { font-size: 2rem; }
    .contract-section { padding: 1.5rem; }
}
