﻿/* ============================================
   home.css - Landing Page Styles
   ============================================ */

.landing-page {
    text-align: center;
    padding: 0 var(--spacing-md, 16px);
    min-height: calc(100vh - var(--header-height, 120px));
    display: flex;
    flex-direction: column;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    padding: var(--spacing-2xl, 48px) 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Logo container with backdrop for readability */
.hero-logo-container {
    display: inline-block;
    padding: var(--spacing-xl, 32px) var(--spacing-2xl, 48px);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-logo-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Categories Section - Free Floating
   ============================================ */
.categories-section {
    padding: var(--spacing-2xl, 48px) 0 var(--spacing-4xl, 120px) 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 50vh;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 280px);
    gap: 6rem;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
    padding: 0 var(--spacing-xl, 40px);
}

/* Free floating category card - no background */
.category-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: var(--spacing-lg, 24px);
    border-radius: var(--border-radius, 12px);
}

    .category-card:hover {
        transform: translateY(-8px) scale(1.02);
        text-decoration: none;
    }

    .category-card:focus {
        outline: 2px solid var(--color-primary, #28b4fa);
        outline-offset: 4px;
        text-decoration: none;
    }

/* Category image - free floating with glow effect */
.category-image-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

    .category-image-wrapper img {
        width: 55%;
        height: auto;
        object-fit: contain;
        transition: transform 0.4s ease, filter 0.4s ease;
        filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 30px rgba(40, 180, 250, 0.3));
    }

.category-card:hover .category-image-wrapper img {
    transform: scale(1.15);
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 40px rgba(40, 180, 250, 0.5));
}

/* Category content - text with shadows for readability */
.category-content {
    padding: var(--spacing-md, 16px) var(--spacing-sm, 8px);
    display: flex;
    flex-direction: column;
    flex: 1;
}

    .category-content h2,
    .category-content h3 {
        font-size: var(--font-size-xl, 1.25rem);
        font-weight: 700;
        margin-bottom: var(--spacing-sm, 10px);
        color: #ffffff;
        text-decoration: none;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 0, 0, 0.5);
        letter-spacing: 0.5px;
    }

    .category-content p {
        color: #e0e0e0;
        font-size: var(--font-size-sm, 0.875rem);
        line-height: 1.6;
        margin-bottom: var(--spacing-md, 16px);
        flex: 1;
        text-decoration: none;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 4px 12px rgba(0, 0, 0, 0.7);
    }

.category-cta {
    color: var(--color-primary, #28b4fa);
    font-weight: 700;
    font-size: var(--font-size-sm, 0.875rem);
    transition: color 0.2s ease, text-shadow 0.2s ease;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(40, 180, 250, 0.4);
}

.category-card:hover .category-cta {
    color: #5cc8ff;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 25px rgba(92, 200, 255, 0.6);
}

/* Subtle hover background effect */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(40, 180, 250, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: var(--border-radius, 12px);
    pointer-events: none;
}

.category-card {
    position: relative;
}

    .category-card:hover::before {
        opacity: 1;
    }

/* ============================================
   Responsive - Tablet
   ============================================ */
@media (max-width: 1100px) {
    .categories-grid {
        grid-template-columns: repeat(3, 220px);
        gap: 3rem;
        padding: 0 var(--spacing-lg, 24px);
    }

    .category-image-wrapper img {
        width: 60%;
    }

    .category-content h2,
    .category-content h3 {
        font-size: var(--font-size-lg, 1.125rem);
    }

    .category-content p {
        font-size: var(--font-size-xs, 0.8rem);
    }
}

@media (max-width: 900px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 240px));
        gap: 2.5rem;
        padding: 0 var(--spacing-lg, 24px);
    }

    .categories-section {
        min-height: 40vh;
    }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 600px) {
    .landing-page {
        padding: 0 var(--spacing-sm, 8px);
        min-height: calc(100vh - var(--header-height, 100px));
    }

    .hero-section {
        padding: var(--spacing-xl, 32px) 0;
    }

    .hero-logo-container {
        padding: var(--spacing-lg, 24px) var(--spacing-xl, 32px);
        margin: 0 var(--spacing-sm, 8px);
        border-radius: 12px;
    }

    .hero-logo-image {
        max-width: 280px;
    }

    .categories-section {
        padding: var(--spacing-xl, 32px) 0 var(--spacing-3xl, 80px) 0;
        min-height: auto;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl, 48px);
        max-width: 320px;
        padding: 0 var(--spacing-md, 16px);
    }

    .category-card {
        padding: var(--spacing-md, 16px);
    }

    .category-image-wrapper img {
        width: 50%;
    }

    .category-content {
        padding: var(--spacing-sm, 12px) 0;
    }

        .category-content h2,
        .category-content h3 {
            font-size: var(--font-size-lg, 1.125rem);
        }

        .category-content p {
            font-size: var(--font-size-sm, 0.875rem);
        }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .category-card,
    .category-image-wrapper img,
    .category-cta,
    .category-card::before {
        transition: none;
    }

        .category-card:hover {
            transform: none;
        }

            .category-card:hover .category-image-wrapper img {
                transform: none;
            }

            .category-card:hover::before {
                opacity: 0;
            }
}
