/* ==========================================
   PUSULABET - Modern Bahis Sitesi CSS
   ========================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

    :root {
        --primary-color: #8B6F47;
        --secondary-color: #2D5016;
        --accent-color: #D4AF37;
        --bg-dark: #0a0a0a;
        --bg-card: #1a1a1a;
        --dark-bg: #0a0a0a;
        --card-bg: #1a1a1a;
        --bg-darker: #0f0f0f;
        --text-primary: #f0f0f0;
        --text-secondary: #d0d0d0;
        --border-color: #8B6F47;
        --success-color: #2D5016;
        --warning-color: #D4AF37;
    }

body {
    font-family: 'Mulish', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--warning-color);
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   HEADER
   ========================================== */
header {
    background: var(--bg-card);
    padding: 20px 0;
    box-shadow: 0 5px 15px rgba(193, 122, 58, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

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

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    display: none;
}

nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: linear-gradient(135deg, #c17a3a 0%, #d4a574 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 122, 58, 0.3);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8B0000 100%);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 30px;
}

/* ==========================================
   CTA BUTTON
   ========================================== */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    font-size: 1.3rem;
    font-weight: 800;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transform: skewX(-5deg);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    margin: 20px 0;
}

.cta-button:hover {
    box-shadow: 10px 10px 0 rgba(193, 122, 58, 0.4);
    transform: skewX(-5deg) translateY(-2px);
    color: #000;
    background: linear-gradient(135deg, #e8c896 0%, #d4a574 100%);
}

.cta-button span {
    transform: skewX(5deg);
}

/* ==========================================
   CARDS
   ========================================== */
.card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(193, 122, 58, 0.25);
}

.card-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.card-title:hover {
    color: var(--warning-color);
}

.card-meta {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0.8;
}

.card-excerpt {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #e0e0e0;
}

.read-more {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #c17a3a 0%, #d4a574 100%);
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more:hover {
    background: linear-gradient(135deg, #d4a574 0%, #c17a3a 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(193, 122, 58, 0.3);
}

/* ==========================================
   LAYOUT
   ========================================== */
.articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 0;
}

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

.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

/* ==========================================
   SIDEBAR
   ========================================== */
.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.widget {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.widget-title {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
    font-weight: 600;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--success-color);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-darker);
}

.widget ul li:last-child {
    border-bottom: none;
}

/* ==========================================
   BADGE
   ========================================== */
.badge {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, #2d7a3e 0%, #3d9a50 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 10px;
    box-shadow: 0 2px 8px rgba(45, 122, 62, 0.25);
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: var(--bg-card);
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -3px 15px rgba(193, 122, 58, 0.15);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* ==========================================
   UTILITIES
   ========================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    nav {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-button {
        font-size: 1.1rem;
        padding: 15px 30px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .logo img {
        height: 45px;
    }
    
    .card {
        padding: 20px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 15px 30px;
    }
}

/* ==========================================
   MOBILE MENU (optional enhancement)
   ========================================== */
.menu-toggle {
    display: none;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        display: none;
        width: 100%;
        flex-direction: column;
    }
    
    nav.active {
        display: flex;
    }
    
    .header-content {
        justify-content: space-between;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .articles {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
}

/* ==========================================
   CTA BANNER
   ========================================== */
.cta-banner {
    background: linear-gradient(135deg, #c17a3a 0%, #a86832 100%);
    padding: 25px 0;
    box-shadow: 0 4px 15px rgba(193, 122, 58, 0.25);
    text-align: center;
}

.cta-banner .cta-button {
    margin: 0;
    font-size: 1.4rem;
    padding: 20px 50px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    display: inline-flex;
    color: #000;
    font-weight: 800;
}

/* ==========================================
   MODAL POPUP
   ========================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--bg-card);
    margin: 3% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(193, 122, 58, 0.3);
    animation: slideDown 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    color: var(--text-secondary);
    float: right;
    font-size: 35px;
    font-weight: 700;
    line-height: 1;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.modal-header {
    background: linear-gradient(135deg, #c17a3a 0%, #a86832 100%);
    padding: 25px 30px;
    border-bottom: 2px solid var(--accent-color);
}

.modal-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-top: 10px;
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.8;
}

.modal-body h3 {
    color: #ffffff;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body ul {
    margin: 15px 0;
    padding-left: 25px;
}

.modal-body ul li {
    margin-bottom: 10px;
}

.modal-body strong {
    color: var(--warning-color);
    font-weight: 700;
}

.modal-footer {
    background: #000000;
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid var(--primary-color);
}

/* Modal scrollbar */
.modal-body::-webkit-scrollbar {
    width: 10px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-radius: 5px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #c17a3a 0%, #d4a574 100%);
    border-radius: 5px;
    border: 2px solid var(--bg-darker);
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #d4a574 0%, #c17a3a 100%);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.4rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-close {
        font-size: 28px;
        padding: 10px 15px;
    }
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.page-btn {
    min-width: 45px;
    height: 45px;
    padding: 10px 15px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 2px solid rgba(193, 122, 58, 0.3);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: linear-gradient(135deg, rgba(193, 122, 58, 0.2) 0%, rgba(212, 165, 116, 0.2) 100%);
    border-color: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(193, 122, 58, 0.2);
}

.page-btn.active {
    background: linear-gradient(135deg, #c17a3a 0%, #d4a574 100%);
    color: #000;
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(193, 122, 58, 0.3);
    font-weight: 700;
}

.page-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .pagination {
        gap: 8px;
    }
    
    .page-btn {
        min-width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
