/* Widowmont Drive Church of the Unholy - Halloween Gallery Styles */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #2a2a2a;
    --text-primary: #e8e8e8;
    --text-secondary: #b8b8b8;
    --text-muted: #888;
    --accent-orange: #ff6b35;
    --accent-red: #dc2626;
    --accent-purple: #7c3aed;
    --border-dark: #333;
    --shadow-dark: rgba(0, 0, 0, 0.8);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    min-height: 100vh;
    background-image: 
        linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.9)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"/></filter></defs><rect width="200" height="200" fill="%23050505"/><g opacity="0.1"><circle cx="30" cy="170" r="3" fill="%23444"/><circle cx="80" cy="160" r="2" fill="%23333"/><circle cx="150" cy="180" r="2.5" fill="%23444"/><path d="M20 180 L25 160 L30 180 Z" fill="%23222"/><path d="M140 185 L145 165 L150 185 Z" fill="%23222"/><path d="M70 175 L75 155 L80 175 Z" fill="%23222"/><rect x="60" y="120" width="80" height="60" rx="10" fill="%23111" opacity="0.3"/><path d="M85 120 Q100 110 115 120 L115 140 Q100 150 85 140 Z" fill="%230a0a0a"/><circle cx="100" cy="130" r="15" fill="none" stroke="%23333" stroke-width="1" opacity="0.5"/></g><rect width="200" height="200" fill="url(%23noise)" opacity="0.1"/></svg>');
    background-size: 400px 400px;
    background-attachment: fixed;
}

/* Typography */
.title-wrapper {
    display: table;
    margin: 0 auto;
    width: auto;
}

.title-wrapper .candle {
    display: table-cell;
    vertical-align: middle;
    padding: 0 1rem;
    color: var(--accent-red);
    animation: pulse 2s infinite;
    font-size: clamp(28px, 5vw, 56px);
}

.site-title {
    font-family: 'Nosifer', cursive;
    font-size: clamp(32px, 6vw, 64px);
    color: var(--accent-red);
    text-shadow: 2px 2px 4px var(--shadow-dark);
    margin: 0;
    text-align: center;
    display: table-cell;
    vertical-align: middle;
}

.site-title .skull {
    color: var(--accent-red);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Header */
.site-header {
    background: var(--gradient-dark);
    border-bottom: 3px solid var(--accent-red);
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow-dark);
}

.site-tagline {
    font-style: italic;
    color: var(--text-secondary);
    margin: 0.5rem 0 0;
    font-size: 1.1rem;
}

.session-header .header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.back-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: 2px solid var(--accent-orange);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: var(--accent-orange);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Sessions Grid */
.sessions-header {
    text-align: center;
    margin: 3rem 0;
}

.sessions-title-wrapper {
    display: table;
    margin: 0 auto;
    width: auto;
}

.sessions-title-wrapper .cross {
    display: table-cell;
    vertical-align: middle;
    padding: 0 1.5rem;
    color: var(--accent-red);
    font-size: 3.5rem;
    font-weight: bold;
    transform: rotate(180deg);
    display: inline-block;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(180deg); }
    100% { transform: rotate(540deg); }
}

.sessions-header h2 {
    font-family: 'Nosifer', cursive;
    font-size: 2.5rem;
    color: var(--accent-red);
    margin: 0;
    text-shadow: 2px 2px 4px var(--shadow-dark);
    display: table-cell;
    vertical-align: middle;
}

.sessions-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0.5rem 0 0;
}

.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Session Cards */
.session-card {
    background: var(--bg-card);
    border: 2px solid var(--border-dark);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px var(--shadow-dark);
    position: relative;
}

.session-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.session-card:hover::before {
    left: 100%;
}

.session-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--accent-orange);
    box-shadow: 
        0 8px 25px var(--shadow-dark),
        0 0 20px rgba(255, 107, 53, 0.2);
}

.session-thumbnail {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.session-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.session-card:hover .session-thumbnail img {
    transform: scale(1.05);
}

.session-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.session-card:hover .session-overlay {
    opacity: 1;
}

.session-stats {
    display: flex;
    gap: 0.5rem;
    align-self: flex-end;
}

.stat {
    background: var(--accent-orange);
    color: var(--bg-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.view-session {
    color: var(--accent-orange);
    font-weight: bold;
    text-align: center;
    padding: 0.5rem;
    background: rgba(0,0,0,0.7);
    border-radius: 8px;
}

.session-info {
    padding: 1rem;
    text-align: center;
}

.session-info .session-title {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.session-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.media-item {
    background: var(--bg-card);
    border: 2px solid var(--border-dark);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-dark);
}

.media-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent-purple);
}

.media-thumbnail {
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
    overflow: hidden;
}

.media-thumbnail img,
.media-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-item:hover .media-thumbnail img,
.media-item:hover .media-thumbnail video {
    transform: scale(1.05);
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-thumbnail:hover .media-overlay {
    opacity: 1;
}

.media-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.media-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-primary);
}

.media-info {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.media-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.media-type {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--accent-orange);
}

.media-size {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Buttons */
.download-btn,
.download-all-btn,
.cta-btn {
    background: var(--accent-orange);
    color: var(--bg-primary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.media-info .download-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

.download-btn:hover,
.download-all-btn:hover,
.cta-btn:hover {
    background: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow-dark);
}

/* Session Title and Meta */
.session-title-wrapper {
    display: table;
    margin: 0 auto 1rem auto;
    width: auto;
}

.session-title-wrapper .session-candle {
    display: table-cell;
    vertical-align: middle;
    padding: 0 1rem;
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.session-title {
    display: table-cell;
    vertical-align: middle;
    font-family: 'Butcherman', cursive;
    font-size: clamp(24px, 4vw, 42px);
    color: var(--accent-red);
    text-shadow: 2px 2px 4px var(--shadow-dark);
    margin: 0;
    padding: 0;
}

.session-divider {
    text-align: center;
    margin: 0.5rem 0;
}

.session-divider .session-cross {
    display: inline-block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-red);
    transform: rotate(180deg);
    animation: spin 4s linear infinite;
}

.session-info-bar {
    display: table;
    margin: 0 auto;
    width: auto;
}

.session-info-bar .gallery-link,
.session-info-bar .info-separator,
.session-info-bar .session-stats {
    display: table-cell;
    vertical-align: middle;
}

.session-info-bar .gallery-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-size: 0.9rem;
    padding-right: 0.5rem;
    transition: color 0.3s ease;
}

.session-info-bar .gallery-link:hover {
    color: var(--accent-red);
}

.session-info-bar .info-separator {
    color: var(--text-muted);
    padding: 0 0.5rem;
}

.session-stats {
    display: flex;
    gap: 0.5rem;
}

.session-stats span {
    background: var(--bg-card);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    font-size: 0.9rem;
}

.download-icon {
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.download-icon:hover {
    transform: scale(1.2);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
}

.lightbox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-red);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--accent-orange);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    left: -60px;
    right: -60px;
    display: flex;
    justify-content: space-between;
    z-index: 1001;
    pointer-events: none;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-orange);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--accent-red);
    transform: scale(1.1);
}

.lightbox-body {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.lightbox-body img,
.lightbox-body video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 8px 30px var(--shadow-dark);
}

.lightbox-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
}

.lightbox-download-btn {
    background: var(--accent-purple);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.lightbox-download-btn:hover {
    background: var(--accent-red);
    transform: translateY(-2px);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 0;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-state h2 {
    font-family: 'Nosifer', cursive;
    color: var(--accent-red);
    font-size: 2rem;
    margin: 1rem 0;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.refresh-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.refresh-btn {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
}

.refresh-btn:hover {
    background: #6d28d9;
    border-color: #6d28d9;
    transform: translateY(-2px);
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--border-dark);
    color: var(--text-secondary);
}

.secondary-btn:hover {
    background: var(--bg-card);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--border-dark);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-wrapper {
    display: table;
    margin: 0 auto;
    width: auto;
}

.footer-wrapper .footer-candle {
    display: table-cell;
    vertical-align: middle;
    padding: 0 1rem;
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.site-footer p {
    display: table-cell;
    vertical-align: middle;
    margin: 0;
    padding: 0;
    color: var(--text-muted);
}

.footer-tagline {
    font-style: italic;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sessions-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .media-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .session-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .session-stats {
        justify-content: center;
    }
    
    .header-nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .lightbox-nav {
        left: 10px;
        right: 10px;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 0.75rem 0;
    }
    
    .site-title {
        font-size: 22px;
    }
    
    .title-wrapper .candle {
        font-size: 20px;
        padding: 0 0.5rem;
    }
    
    .site-tagline {
        font-size: 0.9rem;
    }
    
    .sessions-header h2 {
        font-size: 1.5rem;
    }
    
    .sessions-title-wrapper .cross {
        font-size: 2rem;
        padding: 0 0.8rem;
    }
    
    .session-title-wrapper .session-candle {
        font-size: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .session-title {
        font-size: 20px;
        white-space: nowrap;
    }
    
    .session-divider .session-cross {
        font-size: 1.5rem;
    }
    
    .session-info-bar .gallery-link {
        font-size: 0.8rem;
    }
    
    .session-info-bar .info-separator {
        padding: 0 0.3rem;
    }
    
    .session-stats {
        gap: 0.4rem;
    }
    
    .session-stats span {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .sessions-grid {
        grid-template-columns: 1fr;
    }
    
    .media-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .media-details {
        font-size: 0.7rem;
    }
    
    .download-icon {
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
}