/* ============================================
   ATLASCINE - DISEÑO SIMPLE Y LIMPIO
   ============================================ */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0f0f0f;
    color: #ffffff;
    overflow-x: hidden;
}

/* Scrollbar simple */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e50914;
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: background 0.3s;
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-link {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: #e50914;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 75vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, transparent 100%),
                linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
}

/* ============================================
   SECCIONES
   ============================================ */
.section {
    padding: 0 4%;
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.content-row {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.content-row::-webkit-scrollbar {
    display: none;
}

/* ============================================
   TARJETAS - DISEÑO SIMPLE
   ============================================ */
.card {
    position: relative;
    min-width: 200px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
}

.card:hover .card-overlay {
    opacity: 1;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: #e50914;
    color: #fff;
}

.btn-primary:hover {
    background: #c40812;
}

.btn-secondary {
    background: rgba(109, 109, 110, 0.7);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(109, 109, 110, 0.5);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-new {
    background: #e50914;
    color: #fff;
}

.badge-fav {
    background: #46d369;
    color: #fff;
}

.weekly-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* ============================================
   SEARCH
   ============================================ */
.search-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    width: 250px;
}

.search-input:focus {
    background: rgba(255,255,255,0.15);
    border-color: #e50914;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #181818;
    border-radius: 12px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0;
}

.modal-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #181818 0%, transparent 50%);
}

/* ============================================
   RATING
   ============================================ */
.rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

/* ============================================
   GENRE PILLS
   ============================================ */
.genre-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
}

.genre-pills::-webkit-scrollbar {
    display: none;
}

.genre-pill {
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.genre-pill:hover,
.genre-pill.active {
    background: #e50914;
    border-color: #e50914;
}

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    background: #fff;
    color: #000;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 300;
    transition: transform 0.3s;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   FAVORITE ICON
   ============================================ */
.fav-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 5;
}

.fav-icon:hover {
    background: rgba(229, 9, 20, 0.8);
    transform: scale(1.1);
}

.fav-icon.active {
    background: #e50914;
}

/* ============================================
   SPINNER
   ============================================ */
.spinner {
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #e50914;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   SECTIONS VISIBILITY
   ============================================ */
.section-content {
    display: none;
}

.section-content.active {
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 60px;
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
}

.footer-logo {
    font-size: 32px;
    font-weight: 900;
    color: #e50914;
    margin-bottom: 16px;
}

.footer-tagline {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: #e50914;
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin: 48px 0;
}

.footer-column-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-list a:hover {
    color: #e50914;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-copyright {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin-bottom: 12px;
}

.footer-disclaimer {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
}

.blog-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
}

.blog-header p {
    color: rgba(255,255,255,0.7);
    font-size: 18px;
}

.news-feed {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 50px;
}

.news-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.news-feed-title {
    font-size: 24px;
    font-weight: 800;
}

.news-refresh-btn {
    background: #e50914;
    border: none;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-refresh-btn:hover {
    background: #c40812;
}

.news-grid {
    display: grid;
    gap: 16px;
}

.news-card {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    gap: 16px;
}

.news-card:hover {
    background: rgba(255,255,255,0.1);
}

.news-emoji {
    font-size: 32px;
    flex-shrink: 0;
}

.news-content {
    flex: 1;
}

.news-headline {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.news-description {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.5;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.topic-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    aspect-ratio: 16/10;
}

.topic-card:hover {
    transform: translateY(-5px);
}

.topic-card-bg {
    position: absolute;
    inset: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.topic-card-emoji {
    font-size: 48px;
    margin-bottom: 12px;
}

.topic-card-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.topic-card-desc {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}

.blog-article {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 40px;
}

.blog-back-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-back-btn:hover {
    background: rgba(255,255,255,0.15);
}

.article-content {
    line-height: 1.8;
    font-size: 16px;
}

.article-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
}

.article-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 24px 0 16px;
}

.article-content p {
    margin-bottom: 16px;
}

.blog-loading {
    text-align: center;
    padding: 60px 20px;
}

.blog-loading .spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border-width: 4px;
}

.blog-loading p {
    color: rgba(255,255,255,0.6);
    font-size: 16px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero {
        height: 65vh;
        min-height: 450px;
    }

    .card {
        min-width: 180px;
        height: 270px;
    }

    .section-title {
        font-size: 22px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .card {
        min-width: 160px;
        height: 240px;
    }

    .section {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 20px;
    }

    .search-input {
        width: 200px;
    }

    .blog-header h1 {
        font-size: 36px;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero {
        height: 50vh;
        min-height: 350px;
    }

    .card {
        min-width: 140px;
        height: 210px;
    }

    .section-title {
        font-size: 18px;
    }

    .blog-header h1 {
        font-size: 28px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
