/* ===== RESET & VARIABLES ===== */
:root {
    --primary-color: #1e3c72;  /* Fenerbahçe laciverti */
    --secondary-color: #daa520; /* Fenerbahçe sarısı */
    --accent-color: #ffd700;
    --dark-bg: #0a1a2f;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===== HEADER & NAVIGATION ===== */
#wrapheader {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#wrapheader > div:first-child {
    text-align: center;
    padding: 1.5rem;
}

#wrapheader img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

#topmenu-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#topmenu ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem;
}

#topmenu ul li {
    margin: 0.25rem;
}

#topmenu ul li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

#topmenu ul li a:hover,
#topmenu ul li.current_page_item a {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.3);
}

/* ===== MAIN LAYOUT ===== */
#page-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

#page {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 1.5rem;
}

/* ===== SIDEBARS ===== */
.sidebar {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.sidebar ul {
    list-style: none;
}

.sidebar h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar.obar:first-child {
    text-align: center;
}

.sidebar.obar:first-child a {
    display: inline-block;
    margin: 0.5rem 0;
    transition: transform 0.3s ease;
}

.sidebar.obar:first-child a:hover {
    transform: scale(1.05);
}

/* Puan Durumu Tablosu */
.ibx.standings {
    overflow-x: auto;
}

.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tbl th {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem;
    font-weight: 500;
}

.tbl td {
    padding: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.tbl tr.act {
    background: rgba(218, 165, 32, 0.1);
    font-weight: 600;
}

.tbl tr.act td:first-child {
    border-left: 3px solid var(--secondary-color);
}

/* Kategoriler ve Arşiv */
.widget_categories ul,
.widget_archive ul {
    max-height: 300px;
    overflow-y: auto;
}

.widget_categories li,
.widget_archive li {
    padding: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.3s ease;
}

.widget_categories li:hover,
.widget_archive li:hover {
    background: rgba(218, 165, 32, 0.1);
    padding-left: 1rem;
}

/* Login Form */
#loginform {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#loginform input[type="text"],
#loginform input[type="password"] {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.2);
}

#loginform .button {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#loginform .button:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== MAIN CONTENT ===== */
.narrowcolumn {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

/* Slider/Carousel */
#slider2 {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.contentdiv {
    position: relative;
    display: none;
}

.contentdiv:first-child {
    display: block;
}

.contentdiv img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.featuredTitle {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    padding: 2rem 1rem 1rem;
    margin: 0;
    border-radius: 0 0 15px 15px;
}

.featuredTitle a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
}

#paginate-slider2 {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    margin-top: 1rem;
}

#paginate-slider2 a {
    flex: 0 0 auto;
    transition: transform 0.3s ease;
}

#paginate-slider2 a:hover {
    transform: scale(1.1);
}

#paginate-slider2 img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

#paginate-slider2 a.active img {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.3);
}

/* Post Cards */
.post {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid #e2e8f0;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post h2 {
    margin-bottom: 1rem;
}

.post h2 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.post h2 a:hover {
    color: var(--secondary-color);
}

.entry {
    color: var(--text-dark);
}

.entry p.author {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
    display: inline-block;
}

.entry img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0;
}

.postinfo {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid #e2e8f0;
}

.postinfo ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
}

.postinfo li {
    font-size: 0.9rem;
    color: var(--text-light);
}

.postinfo .postdate {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 20px;
}

.postinfo .comments-link a {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.postinfo .comments-link a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Pagination */
.wp-pagenavi {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
}

.wp-pagenavi span,
.wp-pagenavi a {
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.wp-pagenavi .current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.wp-pagenavi a:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

/* ===== RIGHT SIDEBAR ===== */
#feed {
    text-align: center;
}

#feed a {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #ff6600;
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#feed a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255,102,0,0.3);
}

/* Tag Cloud */
.st-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.st-tag-cloud a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e2e8f0;
    border-radius: 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.st-tag-cloud a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

/* Forum List */
#linkcat-2 ul,
.sidebar li ul li {
    max-height: 300px;
    overflow-y: auto;
}

#linkcat-2 li,
.sidebar li ul li {
    padding: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

#linkcat-2 a,
.sidebar li ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

#linkcat-2 a:hover,
.sidebar li ul li a:hover {
    color: var(--secondary-color);
    padding-left: 0.5rem;
}

/* ===== FOOTER ===== */
#footer-container {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
    color: var(--white);
    padding: 3rem 0;
    margin-top: 3rem;
}

#footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

#footer center {
    margin: 1rem 0;
}

#footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin: 0.25rem 0.5rem;
}

#footer a:hover {
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    #page {
        grid-template-columns: 200px 1fr 200px;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    #page {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 2;
    }
    
    .narrowcolumn {
        order: 1;
    }
    
    #topmenu ul {
        flex-direction: column;
        align-items: stretch;
    }
    
    #topmenu ul li {
        margin: 0.25rem 0;
    }
    
    #topmenu ul li a {
        text-align: center;
    }
    
    .contentdiv img {
        height: 250px;
    }
    
    .featuredTitle a {
        font-size: 1.2rem;
    }
    
    .post h2 a {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .postinfo ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .postinfo li {
        text-align: center;
    }
    
    .wp-pagenavi span,
    .wp-pagenavi a {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post {
    animation: fadeIn 0.6s ease-out;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}