/* === SimpleGameGuide Frontend CSS === */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --secondary: #00cec9;
    --dark: #0f172a;
    --darker: #0b1120;
    --card-bg: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(255,255,255,0.08);
    --accent: #fd79a8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* Header */
.site-header {
    background: var(--darker);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.brand-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}
.brand-text span { color: var(--primary); }
.site-logo { max-height: 40px; }
.navbar { padding: 0; }
.navbar-nav .nav-link {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 15px;
    transition: color 0.2s;
}
.navbar-nav .nav-link:hover { color: var(--primary); }
.navbar-toggler { border: none; color: var(--text); font-size: 22px; }
.btn-search { background: none; border: none; color: var(--text); font-size: 18px; }
.search-form { padding: 10px 0; }
.search-form input {
    background: rgba(128,128,128,0.08);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 10px 18px;
}
.search-form input:focus {
    background: rgba(128,128,128,0.12);
    border-color: var(--primary);
    color: var(--text);
    box-shadow: none;
}

/* Hero */
.hero-section { border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.hero-title { font-size: 28px; font-weight: 700; color: var(--text); }
.hero-desc { color: var(--text-muted); max-width: 700px; margin: 0 auto; font-size: 15px; }

/* Section Title */
.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

/* Rewards */
.reward-list {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.reward-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
    font-weight: 500;
}
.reward-item:last-child { border-bottom: none; }
.reward-item:hover { background: rgba(108,92,231,0.1); color: var(--primary); }
.reward-item i { color: var(--accent); font-size: 16px; width: 22px; text-align: center; }

/* Discover */
.discover-links { display: flex; gap: 10px; flex-wrap: wrap; }
.discover-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.discover-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Play Games */
.game-grid { display: flex; gap: 10px; }
.game-card {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: var(--text);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.game-card:hover { transform: translateY(-3px); color: var(--primary); }
.game-thumb { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; }
.game-title { font-weight: 600; font-size: 14px; }

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(var(--cat-cols, 4), 1fr);
    gap: 8px;
}
@media (max-width: 768px) {
    .category-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
.category-card {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}
.category-card:hover { background: rgba(108,92,231,0.15); color: var(--primary); }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.cat-count { color: var(--text-muted); font-size: 11px; }

/* Post Cards */
.post-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.post-card:hover { transform: translateY(-3px); }
.post-thumb-link { display: block; overflow: hidden; }
.post-thumb { width: 100%; height: 160px; object-fit: cover; transition: transform 0.3s; }
.post-card:hover .post-thumb { transform: scale(1.05); }
.post-info { padding: 15px; }
.post-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.post-title { font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--primary); }
.post-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 6px 0 0 0;
}
.post-meta { display: none; }
.post-reading { display: none; }
.post-category { display: none; }

/* Tools */
.tool-grid { display: flex; gap: 10px; }
.tool-card {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}
.tool-card:hover { background: rgba(0,206,201,0.1); color: var(--secondary); }

/* Single Post */
.single-post .post-heading {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
}
.post-meta-detail { display: none; }
.post-meta-detail i { margin-right: 3px; }
.post-featured-image img { width: 100%; border-radius: 12px; }
.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
}
.post-content h2 { font-size: 24px; font-weight: 700; color: var(--text); margin: 25px 0 15px; }
.post-content h3 { font-size: 20px; font-weight: 600; color: var(--text); margin: 20px 0 10px; }
.post-content p { margin-bottom: 15px; color: var(--text); }
.post-content ul, .post-content ol { margin-bottom: 15px; padding-left: 20px; color: var(--text); }
.post-content li { margin-bottom: 5px; color: var(--text); }
.post-content strong { color: var(--text); }
.post-content img { max-width: 100%; border-radius: 8px; margin: 10px 0; }
.post-content table { width: 100%; margin: 15px 0; border-collapse: collapse; }
.post-content table td, .post-content table th {
    padding: 10px 15px;
    border: 1px solid var(--border);
}
.post-content table th { background: var(--card-bg); font-weight: 600; }
.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    margin: 15px 0;
    background: var(--card-bg);
    border-radius: 0 8px 8px 0;
}
.post-content a { color: var(--secondary); text-decoration: underline; }
.post-content code {
    background: rgba(128,128,128,0.12);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
}

/* Breadcrumb */
.breadcrumb-nav { font-size: 13px; color: var(--text-muted); }
.breadcrumb-nav a { color: var(--text-muted); }
.breadcrumb-nav a:hover { color: var(--primary); }
.breadcrumb-nav .sep { margin: 0 8px; }
.breadcrumb-nav .current { color: var(--text); }

/* Category Header */
.category-header { border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.category-title { font-size: 28px; font-weight: 700; color: var(--text); }
.category-desc { color: var(--text-muted); }

/* Page */
.single-page .page-title { font-size: 28px; font-weight: 700; color: var(--text); }
.page-content { font-size: 16px; line-height: 1.8; color: var(--text); }
.page-content h2, .page-content h3 { color: var(--text); }
.page-content p, .page-content li { color: var(--text); }

/* Sidebar */
.sidebar-widget {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}
.sidebar-post {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post a { color: var(--text); font-size: 14px; font-weight: 500; }
.sidebar-post a:hover { color: var(--primary); }

/* Ad Container */
.ad-container {
    text-align: center;
    margin: 15px 0;
    overflow: hidden;
}
.ad-container img { max-width: 100%; height: auto; border-radius: 8px; }

/* Footer */
.site-footer {
    background: var(--darker);
    border-top: 1px solid var(--border);
    padding: 40px 0 20px;
    margin-top: 40px;
}
.site-footer h5 { color: var(--text); font-weight: 700; margin-bottom: 15px; font-size: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--text-muted); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-desc { color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.footer-bottom {
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}
.social-links { display: flex; gap: 12px; }
.social-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(128,128,128,0.08);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}
.social-icon:hover { background: var(--primary); color: #fff; }

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--darker);
    border-top: 1px solid var(--border);
    padding: 15px 0;
    z-index: 999;
    font-size: 13px;
    color: var(--text-muted);
}

/* Pagination */
.pagination .page-link {
    background: var(--card-bg);
    border-color: var(--border);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 8px;
    margin: 0 3px;
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}
.pagination .page-link:hover { background: var(--primary); color: #fff; }

/* Search */
.search-form-large .form-control {
    background: rgba(128,128,128,0.06);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 20px;
    border-radius: 10px 0 0 10px;
}
.search-form-large .form-control:focus {
    background: rgba(128,128,128,0.1);
    border-color: var(--primary);
    color: var(--text);
    box-shadow: none;
}
.search-form-large .btn { border-radius: 0 10px 10px 0; }

/* ========================================== */
/* MOBİL UYUMLULUK (Responsive) */
/* ========================================== */
@media (max-width: 1200px) {
    .category-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 992px) {
    .container { max-width: 100%; padding: 0 15px; }
    .category-grid { --cat-cols: 2 !important; }
    .section-title { font-size: 20px; }
    .post-card .post-thumb { height: 140px; }
    .post-title { font-size: 14px; }
}

@media (max-width: 768px) {
    /* Genel */
    body { font-size: 14px !important; }
    .container { padding: 0 12px; }
    .py-4 { padding-top: 20px !important; padding-bottom: 20px !important; }
    
    /* Header */
    .site-header { padding: 8px 0; }
    .brand-text { font-size: 18px; }
    .navbar-collapse { 
        background: var(--darker); 
        padding: 10px 15px; 
        border-radius: 8px;
        margin-top: 8px;
    }
    .navbar-nav .nav-link { padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--border); }
    .navbar-nav .nav-link:last-child { border-bottom: none; }
    
    /* Hero */
    .hero-section { padding: 20px 0 !important; margin-bottom: 10px; }
    .hero-title { font-size: 20px; }
    .hero-desc { font-size: 13px; }
    
    /* Section Title */
    .section-title { font-size: 18px; margin-bottom: 15px; }
    
    /* Rewards */
    .reward-item { padding: 10px 14px; font-size: 13px; }
    .reward-item i { font-size: 14px; width: 18px; }
    
    /* Categories */
    .category-grid, #categoryGrid { grid-template-columns: repeat(2, 1fr) !important; gap: 6px; }
    .category-card { padding: 8px 10px; font-size: 12px; }
    
    /* Post Cards */
    .post-card .post-thumb { height: 130px; }
    .post-info { padding: 12px; }
    .post-title { font-size: 14px; }
    .post-excerpt { font-size: 12px; }
    
    /* Single Post */
    .single-post .post-heading { font-size: 22px !important; }
    .post-content { font-size: 15px; }
    .post-content h2 { font-size: 20px; }
    .post-content h3 { font-size: 17px; }
    .post-featured-image img { border-radius: 8px; }
    
    /* Play Games & Tools */
    .game-grid, .tool-grid { flex-direction: column; gap: 8px; }
    .game-card, .tool-card { padding: 14px; }
    .game-thumb { width: 60px; height: 60px; }
    
    /* Discover */
    .discover-links { gap: 6px; }
    .discover-tag { padding: 6px 14px; font-size: 12px; }
    
    /* Pagination */
    .pagination .page-link { padding: 6px 12px; font-size: 13px; }
    
    /* Sidebar */
    .sidebar-widget { padding: 15px; margin-bottom: 15px; }
    .widget-title { font-size: 15px; }
    
    /* Footer */
    .site-footer { padding: 25px 0 15px; margin-top: 25px; }
    .site-footer h5 { font-size: 14px; }
    .footer-links a { font-size: 13px; }
    .social-icon { width: 35px; height: 35px; font-size: 14px; }
    
    /* Cookie */
    .cookie-notice { padding: 10px 0; font-size: 12px; }
    
    /* Search */
    .search-form-large .form-control { padding: 10px 15px; }
    .search-form-large .btn { padding: 10px 15px; }
    
    /* Reward Shortcode */
    .reward-shortcode-header { padding: 10px 15px; }
    .reward-badge { font-size: 14px; }
    .reward-date-group { padding: 10px 15px; }
    .reward-link-item { padding: 6px 10px; font-size: 13px; }
    .reward-num { width: 22px; height: 22px; font-size: 10px; }

    /* Ana sayfa - en son içerikler */
    .section-latest .col-sm-6 { width: 50%; }
    .section-latest .col-lg-2, 
    .section-latest .col-lg-3, 
    .section-latest .col-lg-4, 
    .section-latest .col-lg-6 { width: 50%; }
}
    .container { padding: 0 12px; }
    .py-4 { padding-top: 20px !important; padding-bottom: 20px !important; }
    
    /* Header */
    .site-header { padding: 8px 0; }
    .brand-text { font-size: 18px; }
    .navbar-collapse { 
        background: var(--darker); 
        padding: 10px 15px; 
        border-radius: 8px;
        margin-top: 8px;
    }
    .navbar-nav .nav-link { padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--border); }
    .navbar-nav .nav-link:last-child { border-bottom: none; }
    
    /* Hero */
    .hero-section { padding: 20px 0 !important; margin-bottom: 10px; }
    .hero-title { font-size: 20px; }
    .hero-desc { font-size: 13px; }
    
    /* Section Title */
    .section-title { font-size: 18px; margin-bottom: 15px; }
    
    /* Rewards */
    .reward-item { padding: 10px 14px; font-size: 13px; }
    .reward-item i { font-size: 14px; width: 18px; }
    
    /* Categories */
    .category-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 6px; }
    .category-card { padding: 8px 10px; font-size: 12px; }
    
    /* Post Cards */
    .post-card .post-thumb { height: 130px; }
    .post-info { padding: 12px; }
    .post-title { font-size: 14px; }
    .post-excerpt { font-size: 12px; }
    
    /* Single Post */
    .single-post .post-heading { font-size: 22px !important; }
    .post-content { font-size: 15px; }
    .post-content h2 { font-size: 20px; }
    .post-content h3 { font-size: 17px; }
    .post-featured-image img { border-radius: 8px; }
    
    /* Play Games & Tools */
    .game-grid, .tool-grid { flex-direction: column; gap: 8px; }
    .game-card, .tool-card { padding: 14px; }
    .game-thumb { width: 60px; height: 60px; }
    
    /* Discover */
    .discover-links { gap: 6px; }
    .discover-tag { padding: 6px 14px; font-size: 12px; }
    
    /* Pagination */
    .pagination .page-link { padding: 6px 12px; font-size: 13px; }
    
    /* Sidebar */
    .sidebar-widget { padding: 15px; margin-bottom: 15px; }
    .widget-title { font-size: 15px; }
    
    /* Footer */
    .site-footer { padding: 25px 0 15px; margin-top: 25px; }
    .site-footer h5 { font-size: 14px; }
    .footer-links a { font-size: 13px; }
    .social-icon { width: 35px; height: 35px; font-size: 14px; }
    
    /* Cookie */
    .cookie-notice { padding: 10px 0; font-size: 12px; }
    
    /* Search */
    .search-form-large .form-control { padding: 10px 15px; }
    .search-form-large .btn { padding: 10px 15px; }
    
    /* Reward Shortcode */
    .reward-shortcode-header { padding: 10px 15px; }
    .reward-badge { font-size: 14px; }
    .reward-date-group { padding: 10px 15px; }
    .reward-link-item { padding: 6px 10px; font-size: 13px; }
    .reward-num { width: 22px; height: 22px; font-size: 10px; }

    /* Ana sayfa - en son içerikler 1 sütun */
    .section-latest .col-sm-6 { width: 50%; }
    .section-latest .col-lg-2, 
    .section-latest .col-lg-3, 
    .section-latest .col-lg-4, 
    .section-latest .col-lg-6 { width: 50%; }
}

@media (max-width: 480px) {
    .brand-text { font-size: 16px; }
    .hero-title { font-size: 18px; }
    .section-title { font-size: 16px; }
    .category-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .category-card { font-size: 11px; padding: 6px 8px; }
    .post-card .post-thumb { height: 110px; }
    .single-post .post-heading { font-size: 20px !important; }
    .post-content { font-size: 14px; }
    
    /* Ana sayfa içerik kartları tek sütun */
    .section-latest .col-sm-6,
    .section-latest [class*="col-"] { width: 100% !important; }
    
    .reward-item { font-size: 12px; }
    .game-card, .tool-card { padding: 10px; }
    .social-icon { width: 32px; height: 32px; font-size: 13px; }
    .footer-links { gap: 4px; }
}

/* ========================================== */
/* REWARD SHORTCODE STYLES */
/* ========================================== */
.reward-shortcode-box {
    background: var(--card-bg);
    border: 2px solid var(--primary);
    border-radius: 14px;
    overflow: hidden;
    margin: 20px 0;
}
.reward-shortcode-header {
    background: linear-gradient(135deg, var(--primary), #a855f7);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.reward-badge {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.reward-updated {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.15);
    padding: 3px 10px;
    border-radius: 12px;
}
.reward-date-group {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
}
.reward-date-group:last-child { border-bottom: none; }
.reward-date-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}
.reward-links-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px;
}
.reward-link-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 14px;
    background: rgba(128,128,128,0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none !important;
}
.reward-link-item:hover {
    background: rgba(108,92,231,0.15);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}
.reward-num {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.reward-label {
    flex: 1;
}
.reward-arrow {
    color: var(--primary);
    font-size: 16px;
    transition: transform 0.2s;
}
.reward-link-item:hover .reward-arrow {
    transform: translateX(3px);
}
