/* ============================================
   LA AFICIÓN MX - Sports News Portal
   Modern, Dynamic Design
   ============================================ */

/* VARIABLES */
:root {
    --primary-red: #e11d48;
    --primary-dark: #0f172a;
    --secondary-blue: #0ea5e9;
    --accent-gold: #f59e0b;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Oswald', sans-serif;
}

/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* BREAKING NEWS TICKER */
.breaking-ticker {
    background: linear-gradient(90deg, var(--primary-red), #be123c);
    color: white;
    padding: 10px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.breaking-label {
    background: var(--primary-dark);
    padding: 5px 20px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    margin-left: 20px;
}

.ticker-content span {
    display: inline-block;
    padding-right: 50px;
    animation: scroll-left 30s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* HEADER */
.header {
    background: var(--primary-dark);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-primary {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-secondary {
    font-size: 0.9rem;
    color: var(--primary-red);
    font-weight: 700;
    letter-spacing: 4px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.update-status {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.main-nav {
    padding: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
    overflow-x: auto;
    padding: 10px 0;
}

.nav-link {
    display: block;
    padding: 10px 18px;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background: var(--primary-red);
    color: white;
}

/* HERO SECTION */
.hero-section {
    padding: 30px 0;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--bg-light) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.hero-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 450px;
}

.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-main .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
}

.hero-main .category {
    background: var(--primary-red);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-main h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-main .meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-small {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    flex: 1;
    min-height: 140px;
}

.hero-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-small .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
}

.hero-small .category {
    background: var(--secondary-blue);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: inline-block;
}

.hero-small h3 {
    font-size: 1rem;
    line-height: 1.3;
}

/* MORE FEATURED SECTION */
.more-featured-section {
    padding: 30px 0;
    background: var(--bg-light);
}

.more-featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.more-featured-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.more-featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.more-featured-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.more-featured-card .content {
    padding: 15px;
}

.more-featured-card .category {
    font-size: 0.75rem;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.more-featured-card h4 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 8px;
    font-weight: 600;
}

.more-featured-card .meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 1100px) {
    .more-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .more-featured-grid {
        grid-template-columns: 1fr;
    }
}

/* LIVE SCORES */
.live-scores-section {
    padding: 25px 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: var(--primary-red);
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.scores-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.score-card {
    flex-shrink: 0;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 15px 20px;
    min-width: 200px;
    border: 1px solid var(--border-color);
}

.score-card .league {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.score-card .teams {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.score-card .team {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-card .team-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.score-card .team-score {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.score-card .status {
    font-size: 0.75rem;
    color: var(--primary-red);
    font-weight: 600;
    margin-top: 8px;
    text-align: center;
}

/* MAIN CONTENT */
.main-content {
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* CATEGORY SECTIONS */
.category-section {
    margin-bottom: 40px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-red);
}

.category-header h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

.ver-mas {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.ver-mas:hover {
    color: var(--secondary-blue);
}

.news-grid-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card-small {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-card-small:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-card-small img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.news-card-small .content {
    padding: 15px;
}

.news-card-small .category {
    font-size: 0.75rem;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 8px;
}

.news-card-small h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.news-card-small .meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* SIDEBAR */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-red);
}

.trending-list {
    list-style: none;
}

.trending-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.trending-list li:last-child {
    border-bottom: none;
}

.trending-list .rank {
    background: var(--primary-dark);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.trending-list .topic {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

.upcoming-list {
    list-style: none;
}

.upcoming-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.upcoming-list li:last-child {
    border-bottom: none;
}

.upcoming-list .event-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.upcoming-list .event-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* LOADING */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* FOOTER */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 50px 0 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: white;
}

.footer-links nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-red);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.social-links a:hover {
    background: var(--primary-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.last-update {
    margin-top: 5px;
    font-size: 0.8rem;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .more-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-main {
        height: 350px;
    }

    .hero-sidebar {
        flex-direction: row;
        gap: 10px;
    }

    .news-grid-small {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    /* Header Mobile */
    .header-main {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }

    .header-info {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.8rem;
    }

    .logo-primary {
        font-size: 1.4rem;
    }

    .logo-icon {
        font-size: 2rem;
    }

    /* Navigation Mobile */
    .nav-list {
        gap: 0;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .nav-link {
        padding: 10px 14px;
        font-size: 0.85rem;
        min-width: max-content;
    }

    /* Hero Mobile */
    .hero-section {
        padding: 20px 0;
    }

    .hero-main {
        height: 280px;
    }

    .hero-main h2 {
        font-size: 1.4rem;
    }

    .hero-main .content {
        padding: 20px 15px;
    }

    .hero-sidebar {
        flex-direction: column;
    }

    .hero-small {
        min-height: 120px;
    }

    .hero-small h3 {
        font-size: 0.9rem;
    }

    /* More Featured Mobile */
    .more-featured-section {
        padding: 20px 0;
    }

    .more-featured-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .more-featured-card img {
        height: 150px;
    }

    /* News Grid Mobile */
    .news-grid-small {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .news-card-small img {
        height: 180px;
    }

    /* Category Headers Mobile */
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .category-header h2 {
        font-size: 1.2rem;
    }

    /* Sidebar Mobile */
    .sidebar {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sidebar-widget {
        padding: 15px;
    }

    /* Live Scores Mobile */
    .scores-carousel {
        gap: 10px;
    }

    .score-card {
        min-width: 180px;
        padding: 12px 15px;
    }

    /* Breaking Ticker Mobile */
    .breaking-ticker {
        padding: 8px 0;
    }

    .breaking-label {
        padding: 4px 12px;
        font-size: 0.75rem;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer {
        padding: 30px 0 15px;
    }

    /* Container padding */
    .container {
        padding: 0 15px;
    }

    /* Section titles */
    .section-title {
        font-size: 1.1rem;
    }

    /* Touch-friendly spacing */
    .trending-list li,
    .upcoming-list li {
        padding: 15px 0;
    }
}

/* Article Page Mobile */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .article-meta {
        flex-direction: column;
        gap: 8px;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body h2 {
        font-size: 1.3rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .breadcrumbs ol {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
}/* ============================================
   SEO CONTENT SECTION
   ============================================ */
.seo-content {
    background: var(--bg-card);
    padding: 60px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.seo-article h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-red);
}

.seo-article h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin: 30px 0 20px;
}

.seo-article p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.seo-article strong {
    color: var(--text-primary);
}

.related-sports {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.sport-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.sport-link:hover {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    transform: translateX(5px);
}

.sport-link span {
    font-weight: 600;
    color: var(--text-primary);
}

.sport-link:hover span {
    color: white;
}

/* Mobile Responsive SEO Section */
@media (max-width: 768px) {
    .seo-content {
        padding: 40px 0;
        margin-top: 20px;
    }

    .seo-article h2 {
        font-size: 1.4rem;
    }

    .seo-article h3 {
        font-size: 1.1rem;
    }

    .seo-article p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .related-sports {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sport-link {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}
/* SEO Text Links */
.text-link {
    color: var(--primary-red);
    font-weight: 500;
    border-bottom: 1px dashed var(--primary-red);
    transition: all 0.2s ease;
}

.text-link:hover {
    color: var(--secondary-blue);
    border-bottom-color: var(--secondary-blue);
}

/* SEO News Links Grid */
.seo-news-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-red);
}

.seo-news-links a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 0;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.seo-news-links a:last-child {
    border-bottom: none;
}

.seo-news-links a:hover {
    color: var(--primary-red);
    padding-left: 10px;
}

/* Nested Links in Sport Cards */
.nested-link {
    color: var(--secondary-blue);
    font-weight: 500;
}

.nested-link:hover {
    text-decoration: underline;
}

/* Related Articles in News Pages */
.related-articles {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.related-articles h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.related-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.related-card:hover {
    background: var(--bg-card);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.related-card img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.related-card .content h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

.related-card .content span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Breadcrumb styling */
.breadcrumbs {
    padding: 15px 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs ol {
    display: flex;
    gap: 8px;
    list-style: none;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--secondary-blue);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-muted);
}

/* Mobile SEO Links */
@media (max-width: 768px) {
    .seo-news-links {
        padding: 15px;
        margin: 15px 0 20px;
    }
    
    .seo-news-links a {
        font-size: 0.9rem;
        padding: 10px 0;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .related-card {
        padding: 12px;
    }
    
    .related-card img {
        width: 80px;
        height: 55px;
    }
}
/* Back to Section Links */
.back-to-section {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.back-link {
    color: var(--secondary-blue);
    font-weight: 500;
    padding: 10px 20px;
    border: 1px solid var(--secondary-blue);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.back-link:hover {
    background: var(--secondary-blue);
    color: white;
}

@media (max-width: 768px) {
    .back-to-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .back-link {
        text-align: center;
    }
}
