/*
 * Landing Page CSS - The Ghost Maps
 * Extends ghost-theme.css with landing-specific styles
 */

/* === OVERRIDE FOR LANDING PAGE === */
.landing-page {
    background: var(--bg-dark);
    color: var(--text-bone);
}

.landing-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HERO SECTION === */
.hero-section {
    min-height: 100vh;
    background: var(--bg-dark);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(240, 68, 68, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(240, 68, 68, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Search Box Override */
.hero-search .search-input {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-cream);
}

.hero-search .search-input:focus {
    border-color: var(--accent-red);
    box-shadow: var(--glow-red);
}

/* Stats Cards */
.hero-stats .stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

/* === CATEGORY SECTION === */
.category-section {
    background: var(--bg-sidebar);
    padding: 80px 0;
    border-bottom: 1px solid var(--border-light);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    color: var(--text-cream);
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
    box-shadow: 0 8px 24px rgba(240, 68, 68, 0.2);
}

/* === FEATURED PINS SLIDER === */
.featured-section {
    background: var(--bg-dark);
    padding: 80px 0;
    overflow: hidden;
}

.pin-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.pin-slider {
    overflow: hidden;
    margin: 0 -12px;
}

.pin-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.pin-slide {
    flex: 0 0 calc(25% - 24px);
    margin: 0 12px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Mobile: 2 columns */
@media (max-width: 768px) {
    .pin-slide {
        flex: 0 0 calc(50% - 24px);
    }
    
    .pin-slider-container {
        padding: 0 40px;
    }
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-cream);
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 2;
}

.slider-nav:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

@media (max-width: 768px) {
    .slider-nav {
        width: 35px;
        height: 35px;
    }
    
    .slider-nav.prev {
        left: 5px;
    }
    
    .slider-nav.next {
        right: 5px;
    }
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    background: var(--border-light);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.slider-dot.active {
    background: var(--accent-red);
    width: 24px;
    border-radius: 4px;
}

/* Pin Card (Same as app.php) */
.pin-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    height: 100%;
}

.pin-card:hover {
    transform: translateY(-4px);
}

.pin-card-image {
    position: relative;
    height: 220px;
    background: var(--bg-dark);
    overflow: hidden;
}

.pin-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.pin-card-image img.active {
    opacity: 1;
}

.pin-gallery-nav {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
}

.pin-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.pin-dot.active {
    background: white;
    width: 18px;
    border-radius: 3px;
}

.pin-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 12px;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pin-card-content {
    padding: 20px;
}

.pin-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-cream);
    margin-bottom: 8px;
    text-decoration: none;
    display: block;
}

.pin-card-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.skull {
    color: var(--accent-red);
    font-size: 14px;
}

.skull.empty {
    opacity: 0.3;
}

.pin-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

/* === REVIEWS SECTION === */
.reviews-section {
    background: var(--bg-sidebar);
    padding: 80px 0;
    border-top: 1px solid var(--border-light);
}

.review-slider {
    overflow: hidden;
    position: relative;
}

.review-track {
    display: flex;
    gap: 24px;
    animation: reviewScroll 30s linear infinite;
}

.review-track:hover {
    animation-play-state: paused;
}

@keyframes reviewScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.review-card {
    flex: 0 0 350px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
}


/* === CTA SECTION === */
.cta-section {
    background: var(--bg-dark);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(240, 68, 68, 0.1) 0%, transparent 70%);
    animation: spookyPulse 4s ease-in-out infinite;
}

/* === FOOTER === */
.footer {
    background: var(--bg-sidebar);
    color: var(--text-secondary);
    padding: 48px 0 24px;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 32px;
}

.footer-section h5 {
    color: var(--text-cream);
    margin-bottom: 16px;
    font-size: 18px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.footer-links a:hover {
    color: var(--accent-red);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--accent-red);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 14px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn-ghost-primary,
    .hero-cta .btn-outline-light {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .category-card {
        padding: 16px;
    }
    
    .category-icon {
        font-size: 32px;
    }
    
    .category-name {
        font-size: 12px;
    }
}

/* === LOADING & ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, #2a2d35 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}