/*
Theme Name: Golazo
Theme URI: https://golazo.mefound.com
Description: Portal de noticias de fútbol en español con diseño moderno y elegante.
Version: 1.0
Author: Golazo Team
Text Domain: golazo
*/

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #1a472a;
    --primary-light: #2d6a4f;
    --primary-dark: #0d2818;
    --accent: #d4af37;
    --accent-light: #f0d060;
    --bg: #f5f5f0;
    --bg-card: #ffffff;
    --text: #1a1a1a;
    --text-light: #555555;
    --text-muted: #888888;
    --border: #e0e0d8;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 6px 24px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

/* === HEADER === */
.site-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
}

.site-logo {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo .icon { font-size: 28px; }
.site-logo .accent { color: var(--accent); }

.header-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border-radius: 25px;
    padding: 8px 16px;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.header-search input {
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    outline: none;
    width: 180px;
}

.header-search input::placeholder { color: rgba(255,255,255,0.6); }
.header-search svg { opacity: 0.7; }

/* Navigation */
.main-nav {
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.nav-list {
    display: flex;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-list::-webkit-scrollbar { display: none; }

.nav-list li a {
    display: block;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all var(--transition);
}

.nav-list li a:hover,
.nav-list li.current-menu-item a {
    color: #fff;
    border-bottom-color: var(--accent);
}

/* === LAYOUT === */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
}

/* === HERO / FEATURED === */
.featured-hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    aspect-ratio: 16/9;
}

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

.featured-hero .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
}

.featured-hero .category-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.featured-hero h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 8px;
}

.featured-hero .meta {
    font-size: 13px;
    opacity: 0.75;
}

/* === ARTICLE CARDS === */
.section-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title .icon { color: var(--primary); }

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.article-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.article-card .thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.article-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .thumb img {
    transform: scale(1.05);
}

.article-card .card-body {
    padding: 16px;
}

.article-card .category-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.article-card h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.article-card .excerpt {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-card .meta svg { width: 14px; height: 14px; opacity: 0.5; }

/* === LIST ARTICLES (SIDEBAR STYLE) === */
.article-list-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.article-list-item:last-child { border-bottom: none; }

.article-list-item .thumb-sm {
    width: 90px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-list-item .thumb-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-list-item h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.article-list-item .meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* === SIDEBAR === */
.sidebar { display: flex; flex-direction: column; gap: 30px; }

.sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.sidebar-widget .widget-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent);
}

/* Live Scores Widget */
.score-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.score-item:last-child { border-bottom: none; }

.score-teams { flex: 1; }
.score-teams .team { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.score-result {
    font-weight: 800;
    font-size: 15px;
    background: var(--primary-dark);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    text-align: center;
    min-width: 50px;
}

.score-status {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    min-width: 50px;
}

.score-status.live { color: #e53e3e; font-weight: 700; }

/* Standing Table */
.standing-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.standing-table th {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 2px solid var(--primary);
    font-weight: 700;
    color: var(--text-light);
    font-size: 11px;
    text-transform: uppercase;
}
.standing-table td { padding: 8px 6px; border-bottom: 1px solid var(--border); }
.standing-table tr:last-child td { border-bottom: none; }
.standing-table .pos { font-weight: 800; color: var(--primary); width: 24px; }
.standing-table .pts { font-weight: 800; }
.standing-table .team-name { font-weight: 600; }

/* Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
    background: var(--bg);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.tag-cloud a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* === SINGLE POST === */
.single-post-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.single-post-content h1 {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 16px;
}

.single-post-content .post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-muted);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.single-post-content .post-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
}

.single-post-content .post-body p { margin-bottom: 1.4em; }
.single-post-content .post-body h2 { font-size: 24px; margin: 1.5em 0 0.6em; }
.single-post-content .post-body h3 { font-size: 20px; margin: 1.3em 0 0.5em; }
.single-post-content .post-body blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    margin: 1.5em 0;
    background: var(--bg);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-light);
}
.single-post-content .post-body img {
    border-radius: 8px;
    margin: 1.5em 0;
}

/* === FOOTER === */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    margin-top: 60px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent);
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    max-width: 1200px;
    margin: 0 auto;
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 40px 0;
}

.pagination a, .pagination span {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .content-grid { grid-template-columns: 1fr; }
    .sidebar { order: 2; }
}

@media (max-width: 768px) {
    .header-top { height: 60px; }
    .site-logo { font-size: 24px; }
    .header-search { display: none; }
    .nav-list li a { padding: 10px 14px; font-size: 12px; }
    .articles-grid { grid-template-columns: 1fr; }
    .featured-hero h2 { font-size: 20px; }
    .featured-hero .overlay { padding: 24px 20px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .single-post-content { padding: 24px 18px; }
    .single-post-content h1 { font-size: 24px; }
}

/* === COMMENTS === */
.comments-area {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.comments-area h2 { font-size: 20px; font-weight: 800; margin-bottom: 20px; }

.comment-list { list-style: none; }
.comment-list .comment {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.comment-author { font-weight: 700; font-size: 14px; }
.comment-date { font-size: 12px; color: var(--text-muted); }
.comment-content { margin-top: 8px; font-size: 14px; line-height: 1.6; }

/* Search form */
.search-form {
    display: flex;
    gap: 8px;
}
.search-form input[type="search"] {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}
.search-form input[type="search"]:focus { border-color: var(--primary); }
.search-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}
.search-form button:hover { background: var(--primary-light); }

/* WordPress core alignment */
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.aligncenter { display: block; margin: 1.5em auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--text-muted); padding: 8px 0; }
