﻿/* =====================
   HOME - ESTILO APPLE
   ===================== */

/* Hero Section */
.home-hero {
    text-align: center;
    margin: 80px 0 120px 0;
}

    .home-hero h1 {
        font-size: 3rem;
        font-weight: 600;
        margin-bottom: 16px;
        color: var(--color-text-primary);
    }

    .home-hero p {
        font-size: 1.25rem;
        color: var(--color-text-secondary);
        margin-bottom: 32px;
    }

/* Buscador Hero */
.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

    .search-box input {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        border: 1px solid var(--color-border);
        border-radius: 24px;
        background-color: var(--color-surface);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        transition: all 0.2s ease-in-out;
    }

        .search-box input:focus {
            outline: none;
            border-color: var(--color-accent);
            box-shadow: 0 6px 18px rgba(0,0,0,0.08);
        }

/* Temas */
.topics {
    margin-top: 100px;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.topic-card {
    background-color: var(--color-surface);
    border-radius: 16px;
    padding: 32px 24px;
    border: 1px solid var(--color-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

    .topic-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    }

    .topic-card h3 {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .topic-card span {
        font-size: 0.95rem;
        color: var(--color-text-secondary);
    }

/* Footer */
.site-footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 32px 0;
    margin-top: 120px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.footer-nav a {
    margin-left: 20px;
    transition: color 0.2s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .home-hero h1 {
        font-size: 2.2rem;
    }

    .home-hero p {
        font-size: 1.1rem;
    }

    .search-box {
        max-width: 90%;
    }

    .topics-grid {
        gap: 24px;
    }
}

/* =====================
   HEADER BUSCADOR RESULTADOS
   ===================== */
.results-header {
    position: sticky;
    top: 0;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    padding: 1rem 0;
}

    .results-header .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .results-header .logo a {
        font-size: 1.8rem;
        font-weight: bold;
        text-decoration: none;
        color: var(--color-text-primary);
    }

    .results-header .search-container input {
        padding: 0.5rem 1rem;
        font-size: 1rem;
        width: 250px;
        border-radius: 24px;
        border: 1px solid var(--color-border);
        background-color: var(--color-surface);
    }

        .results-header .search-container input:focus {
            outline: none;
            border-color: var(--color-accent);
        }

    .results-header .search-container button {
        padding: 0.5rem 1rem;
        margin-left: 0.5rem;
        border-radius: 24px;
        border: none;
        background-color: var(--color-accent);
        color: #fff;
        cursor: pointer;
    }

        .results-header .search-container button:hover {
            background-color: #e55a00; /* Accent hover */
        }

/* Resultados de vídeo */
.results-main {
    margin-top: 2rem;
}

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

.video-card {
    background-color: var(--color-surface);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .video-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    }

    .video-card img {
        max-width: 100%;
        border-radius: 8px;
    }

    .video-card h3 {
        margin-top: 0.5rem;
        font-size: 1rem;
        color: var(--color-text-primary);
    }

    .video-card .platform {
        display: block;
        margin-top: 0.25rem;
        font-size: 0.8rem;
        color: var(--color-text-secondary);
    }
