/* =============================================
   Basketbolig.com - Frontend CSS
   The Big Lead + NBA.com Tarzı Tasarım
   ============================================= */

:root {
    --primary: #1a1a2e;
    --primary-dark: #0f0f1e;
    --accent: #e74c3c;
    --accent-hover: #c0392b;
    --text: #1a1a1a;
    --text-light: #666;
    --text-muted: #999;
    --bg: #ffffff;
    --bg-gray: #f5f5f5;
    --bg-dark: #1a1a2e;
    --border: #e5e5e5;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --max-width: 1280px;
    --header-height: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   BREAKING NEWS BAR
   ============================================= */
.breaking-bar {
    background: var(--accent);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
}

.breaking-bar .container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breaking-tag {
    background: #fff;
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    white-space: nowrap;
}

.breaking-text {
    overflow: hidden;
    white-space: nowrap;
}

.breaking-text a {
    color: #fff;
    animation: marquee 20s linear infinite;
    display: inline-block;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================
   HEADER (The Big Lead Tarzı)
   ============================================= */
.site-header {
    background: var(--bg);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-logo {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
    text-transform: uppercase;
}

.site-logo span {
    color: var(--accent);
}

.site-logo img {
    height: 40px;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav a {
    padding: 18px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s, background 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Social Icons in Header */
.header-social {
    display: flex;
    gap: 6px;
}

.header-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
}

.header-social a:hover {
    background: var(--accent);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
}

/* =============================================
   SCORE WIDGET (NBA.com Tarzı)
   ============================================= */
.score-widget {
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    overflow: hidden;
}

.score-widget .container {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}

.score-widget iframe {
    width: 100%;
    border: none;
    min-height: 80px;
}

.score-widget-placeholder {
    text-align: center;
    padding: 15px;
    color: var(--text-muted);
    font-size: 13px;
}

/* =============================================
   AD CONTAINERS
   ============================================= */
.ad-container {
    text-align: center;
    padding: 15px 0;
}

.ad-container img {
    max-width: 100%;
    height: auto;
}

.ad-after_scores, .ad-after_hero, .ad-after_authors {
    background: var(--bg-gray);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* =============================================
   HERO SECTION (NBA.com Ana Haber + Sağ Headlines)
   ============================================= */
.hero-section {
    padding: 25px 0;
}

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

/* Ana Manşet Haber */
.hero-main {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
}

.hero-main-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-main-overlay {
    position: relative;
    z-index: 2;
    padding: 40px 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    width: 100%;
}

.hero-main-category {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-main h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.hero-main p {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.hero-read-btn {
    display: inline-block;
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.hero-read-btn:hover {
    background: #fff;
    color: var(--primary);
}

/* Sub Heroes (5 küçük haber hero altında) */
.hero-sub-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.hero-sub-item {
    border-top: 3px solid var(--border);
    padding-top: 12px;
}

.hero-sub-item .sub-category {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.hero-sub-item h4 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--text);
    transition: color 0.2s;
}

.hero-sub-item:hover h4 { color: var(--accent); }

/* Headlines Sidebar */
.headlines-sidebar {
    border-left: 1px solid var(--border);
    padding-left: 25px;
}

.headlines-title {
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.headlines-title a {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    text-transform: none;
}

.headline-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.headline-item a {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    transition: color 0.2s;
    display: block;
}

.headline-item a:hover { color: var(--accent); }

/* =============================================
   AUTHORS SECTION
   ============================================= */
.authors-section {
    padding: 30px 0;
    background: var(--bg-gray);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

.section-header .section-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
}

.section-header .see-more {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

.section-header::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border);
    margin-left: 15px;
}

.section-header .see-more + .section-header::after {
    display: none;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.author-card {
    background: var(--bg);
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow);
}

.author-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.author-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid var(--border);
}

.author-card .author-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 32px;
    color: var(--text-muted);
}

.author-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.author-card p {
    font-size: 12px;
    color: var(--text-muted);
}

/* =============================================
   CATEGORY NEWS SECTIONS (NFL/NBA Tarzı 5'li Kartlar)
   ============================================= */
.category-section {
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
}

.category-section:nth-child(even) {
    background: var(--bg-gray);
}

.news-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.news-card {
    transition: transform 0.2s;
}

.news-card:hover {
    transform: translateY(-3px);
}

.news-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
    background: var(--bg-gray);
}

.news-card h3 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text);
    transition: color 0.2s;
}

.news-card:hover h3 { color: var(--accent); }

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

.news-card .news-meta .author-name {
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 15px;
}

.footer-about h3 span { color: var(--accent); }

.footer-about p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

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

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 6px;
    font-size: 16px;
    transition: background 0.2s;
}

.footer-social a:hover { background: var(--accent); }

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
}

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

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
    padding: 30px 0;
    text-align: center;
}

.pagination ul {
    list-style: none;
    display: inline-flex;
    gap: 5px;
}

.pagination li a,
.pagination li span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text);
    transition: all 0.2s;
}

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

.pagination li.active a {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* =============================================
   DETAIL PAGE
   ============================================= */
.detail-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    padding: 30px 0;
}

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

.article-content h1 {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 15px;
}

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

.article-content .article-meta .category-badge {
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.article-content .featured-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.article-content img {
    border-radius: 6px;
    margin: 15px 0;
}

/* Tags */
.article-tags {
    padding: 20px 0;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

.article-tags span {
    display: inline-block;
    background: var(--bg-gray);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-light);
    margin: 3px;
    transition: background 0.2s;
}

.article-tags span:hover { background: var(--border); }

/* Share */
.share-buttons {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.share-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.share-btn:hover { opacity: 0.85; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }

/* Sidebar */
.sidebar-content {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.sidebar-widget {
    margin-bottom: 25px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.sidebar-widget .widget-header {
    padding: 15px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.sidebar-widget .widget-body {
    padding: 15px;
}

.sidebar-news-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

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

.sidebar-news-item img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.sidebar-news-item h5 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    transition: color 0.2s;
}

.sidebar-news-item:hover h5 { color: var(--accent); }

.sidebar-news-item .meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* =============================================
   COMMENTS
   ============================================= */
.comments-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border);
}

.comments-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 10px;
}

.comment-form input {
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 10px;
    margin-right: 10px;
    width: calc(50% - 10px);
}

.comment-form button {
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.comment-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.comment-item .comment-author {
    font-weight: 700;
    font-size: 14px;
}

.comment-item .comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-item .comment-text {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.6;
}

/* =============================================
   SEARCH PAGE
   ============================================= */
.search-hero {
    background: var(--primary);
    padding: 40px 0;
    color: #fff;
    text-align: center;
}

.search-hero h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
}

.search-form button {
    padding: 14px 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    cursor: pointer;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-light);
    transition: color 0.2s;
}

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

.breadcrumb span { margin: 0 6px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .headlines-sidebar { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 20px; }
    .news-grid-5 { grid-template-columns: repeat(3, 1fr); }
    .hero-sub-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .detail-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        border-bottom: 3px solid var(--primary);
        box-shadow: var(--shadow);
    }
    .main-nav.active { display: flex; }
    .main-nav a { padding: 14px 20px; border-bottom: 1px solid var(--border); margin: 0; }
    .header-social { display: none; }
    .hero-main { min-height: 350px; }
    .hero-main h2 { font-size: 22px; }
    .news-grid-5 { grid-template-columns: repeat(2, 1fr); }
    .hero-sub-grid { grid-template-columns: repeat(2, 1fr); }
    .authors-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .article-content h1 { font-size: 24px; }
}

@media (max-width: 480px) {
    .news-grid-5 { grid-template-columns: 1fr; }
    .hero-sub-grid { grid-template-columns: 1fr 1fr; }
    .authors-grid { grid-template-columns: 1fr 1fr; }
}
