/*
 * Shudderwick — Custom CSS
 *
 * This file contains styles that supplement Tailwind utility classes.
 * Most styling is done inline via Tailwind. This file handles:
 * - Complex animations
 * - Pseudo-element patterns
 * - Print styles
 * - Anything that can't be expressed as utility classes
 */

/* ===== Ad Slot Styling ===== */

.ad-slot {
    border: 1px dashed rgba(155, 179, 196, 0.25);
    background: rgba(26, 32, 41, 0.4);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ad-slot::before {
    content: 'ADVERTISEMENT';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Lora', serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(155, 179, 196, 0.35);
    background: #141418;
    padding: 0 0.75rem;
}

/* Homepage ad slots sit on the slightly lighter bg */
.ad-slot-home::before {
    background: #1a2029;
}

/* When real ads load, remove placeholder styling */
.ad-slot.ad-loaded {
    border-color: transparent;
    background: transparent;
    min-height: auto;
}

/* Responsive ad slot heights */
@media (min-width: 640px) {
    .ad-slot { min-height: 100px; }
}
@media (min-width: 1024px) {
    .ad-slot { min-height: 120px; }
}


/* ===== Print Styles ===== */

@media print {
    .ad-slot,
    nav,
    footer,
    .chapter-nav-gradient {
        display: none !important;
    }

    body {
        background: white;
        color: #1a1a1a;
    }

    .story-text {
        color: #1a1a1a;
        font-size: 12pt;
        line-height: 1.6;
    }

    .illustration-frame {
        border: 1px solid #ccc;
    }
}
