/* 
 * Metin2 Server Listesi - Modern UI/UX Style
 * Light/Dark Tema Destekli
 */

:root {
    /* Ortak Renkler */
    --primary-gold: #c9b18c;
    --primary-gold-dark: #8c6d3f;
    --accent-blue: #1976d2;
    --accent-red: #c62828;
    --accent-green: #2e7d32;
    --accent-orange: #e65100;
    
    /* Animasyonlar */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 30px -5px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px -5px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 15px rgba(201, 177, 140, 0.4);
    --card-radius: 16px;
    --btn-radius: 50px;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Light Tema (Varsayılan) */
body {
    --bg-body: #f5f0e8;
    --bg-card: #ffffff;
    --bg-card-overlay: rgba(255, 255, 255, 0.95);
    --bg-input: rgba(0, 0, 0, 0.05);
    --text-main: #5a4a3a;
    --text-muted: #8c7b6b;
    --border-color: rgba(140, 109, 63, 0.2);
    --card-border: 1px solid rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Dark Tema */
body.dark-theme {
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --bg-card-overlay: rgba(30, 30, 30, 0.95);
    --bg-input: rgba(255, 255, 255, 0.08);
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: rgba(201, 177, 140, 0.15);
    --card-border: 1px solid rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(30, 30, 30, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Genel Yapı */
body {
    position: relative;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.metin2-content {
    position: relative;
    padding-bottom: 60px;
    min-height: 100vh;
}

a {
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Tema Değiştirme Butonu */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Yuvarlak */
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.theme-toggle-btn:hover {
    background-color: var(--bg-input);
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    transform: rotate(15deg);
}

/* Hero Bölümü */
.hero-banner {
    background: url('../../assets/images/bg-top.jpg') no-repeat center center;
    background-size: cover;
    padding: 80px 30px;
    position: relative;
    margin-bottom: 30px;
    margin-top: 30px;
    border-radius: 12px;
    border-bottom: 3px solid var(--primary-gold);
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: var(--primary-gold);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    letter-spacing: -1px;
    animation: slideInDown 0.8s ease-out;
}

.hero-text {
    color: #dcdcdc;
    font-size: 1.2rem;
    margin-bottom: 35px;
    line-height: 1.6;
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Kartlar ve Kutular */
.server-card, .blog-card, .profile-box, .login-box, .register-box, .add-server-box, .edit-server-box, .contact-form-box, .sidebar-widget, .add-server-tips, .my-servers-box, .my-servers-info-box {
    background-color: var(--bg-card);
    border-radius: var(--card-radius);
    border: var(--card-border);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    backdrop-filter: blur(10px); /* Modern Glass Effect */
}

.server-card:hover, .blog-card:hover, .login-box:hover, .register-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-gold);
}

.server-list-item.vip-server {

    border: 3px solid #FFD700 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5) !important;
    animation: vipGlow 2s infinite alternate;
}

/* Kart Headerları */
.profile-box-header, .login-header, .register-header, .add-server-box-header, .edit-server-box-header, .contact-form-header, .widget-header, .add-server-tips-header, .my-servers-box-header, .my-servers-info-header {
    padding: 20px;
    background: linear-gradient(to right, rgba(201, 177, 140, 0.1), transparent);
    border-bottom: 1px solid var(--border-color);
}

.profile-box-header h2, .login-header h2, .widget-header h3, .add-server-tips-header h3, .my-servers-box-header h2, .my-servers-info-header h3 {
    color: var(--primary-gold);
    margin: 0;
    font-weight: 700;
}

/* Form Elemanları */
.form-control {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 15px;
    border-radius: 8px;
    transition: var(--transition-fast);
    height: auto;
}

.form-control:focus {
    background-color: var(--bg-card);
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(201, 177, 140, 0.2);
    color: var(--text-main);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c9b18c' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px 12px;
    padding: 12px 40px 12px 15px !important;
    line-height: 1.5;
    vertical-align: middle;
    height: auto !important;
}

select.form-control option {
    background-color: var(--bg-card);
    color: var(--text-main);
}

label {
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 8px;
}

/* Butonlar */
.btn-metin {
    padding: 12px 28px;
    border-radius: var(--btn-radius);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-gold {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 100%);
    color: #1a1815;
    box-shadow: 0 4px 15px rgba(201, 177, 140, 0.4);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 177, 140, 0.6);
    color: #000;
}

.btn-dark {
    background: #2c2c2c;
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold-dark);
}

.btn-dark:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: var(--primary-gold);
}

/* VIP Badge & Etiketler */
.vip-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffd700, #ffa000);
    color: #000;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.8rem;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
    animation: pulse 2s infinite;
}

.badge-metin {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: rgba(201, 177, 140, 0.15);
    color: var(--text-main);
    border-left: 3px solid var(--primary-gold);
}

.badge-metin.wslik { border-color: var(--accent-blue); color: var(--accent-blue); }
.badge-metin.emek { border-color: var(--accent-green); color: var(--accent-green); }
.badge-metin.orta-emek { border-color: var(--accent-orange); color: var(--accent-orange); }
.badge-metin.kolay { border-color: #4caf50; color: #4caf50; }
.badge-metin.orta { border-color: #ff9800; color: #ff9800; }
.badge-metin.zor { border-color: #f44336; color: #f44336; }

/* Sunucu Listesi & Grid */
.server-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.server-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.server-card:hover .server-image img {
    transform: scale(1.1);
}

.server-card-body {
    padding: 20px;
}

.server-title {
    color: var(--primary-gold);
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 700;
}

/* VIP Slider */
.vip-servers-section {
    padding: 40px 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.02), rgba(0,0,0,0.05));
}

.vip-servers-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 20px 5px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.vip-servers-slider::-webkit-scrollbar {
    display: none;
}

.vip-server-slide {
    min-width: 300px;
    flex: 0 0 auto;
}

/* Animasyon Keyframes */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideInDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes vipGlow {
    from { box-shadow: 0 0 10px rgba(255, 215, 0, 0.4); border-color: #c9b18c; }
    to { box-shadow: 0 0 25px rgba(255, 215, 0, 0.8); border-color: #FFD700; }
}

/* Tablolar */
.table {
    color: var(--text-main);
}

.table thead th {
    border-bottom: 2px solid var(--primary-gold);
    color: var(--primary-gold);
}

.table td {
    border-top: 1px solid var(--border-color);
}

/* Custom Selection Grid (Add Server) */
.custom-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.selection-card {
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.selection-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(201, 177, 140, 0.1) 0%, rgba(140, 109, 63, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.selection-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(201, 177, 140, 0.3);
}

.selection-card.selected {
    background: linear-gradient(135deg, rgba(201, 177, 140, 0.2) 0%, rgba(140, 109, 63, 0.1) 100%);
    border-color: var(--primary-gold);
    box-shadow: 0 8px 25px rgba(201, 177, 140, 0.4);
    transform: translateY(-3px);
}

.selection-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 10px; right: 10px;
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(201, 177, 140, 0.2);
}

.selection-title {
    color: var(--primary-gold);
    font-weight: 700;
    margin-bottom: 5px;
}

.selection-description {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.selection-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    margin-top: 10px;
}

.selection-badge.wslik { background: rgba(25, 118, 210, 0.2); color: #1976d2; border: 1px solid rgba(25, 118, 210, 0.3); }
.selection-badge.orta-emek { background: rgba(230, 81, 0, 0.2); color: #e65100; border: 1px solid rgba(230, 81, 0, 0.3); }
.selection-badge.emek { background: rgba(46, 125, 50, 0.2); color: #2e7d32; border: 1px solid rgba(46, 125, 50, 0.3); }
.selection-badge.kolay { background: rgba(76, 175, 80, 0.2); color: #4caf50; border: 1px solid rgba(76, 175, 80, 0.3); }
.selection-badge.orta { background: rgba(255, 152, 0, 0.2); color: #ff9800; border: 1px solid rgba(255, 152, 0, 0.3); }
.selection-badge.zor { background: rgba(244, 67, 54, 0.2); color: #f44336; border: 1px solid rgba(244, 67, 54, 0.3); }

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .theme-toggle-btn { width: 45px; height: 45px; }
    .server-list-image { width: 100%; height: 180px; margin-bottom: 15px; }
    .server-list-link { flex-direction: column; }
}

/* --- Index Page Elements --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.section-title i {
    font-size: 1.5rem;
    color: var(--primary-gold-dark);
}

.view-all {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.view-all:hover {
    color: var(--primary-gold);
}

.vip-servers-container {
    position: relative;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.slider-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-arrow:hover {
    background: var(--primary-gold);
    color: #000;
    border-color: var(--primary-gold);
}

.server-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.server-card:hover .server-overlay {
    opacity: 1;
}

.view-details {
    color: #fff;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--primary-gold);
    border-radius: 20px;
    background: rgba(0,0,0,0.5);
}

.server-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Servers Page (Sunucu Listesi) --- */
.servers-filter-box {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    border: var(--card-border);
    margin-bottom: 30px;
}

.servers-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.servers-tab {
    padding: 10px 20px;
    border-radius: 20px;
    background-color: var(--bg-card);
    color: var(--text-main);
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.servers-tab:hover, .servers-tab.active {
    background-color: rgba(201, 177, 140, 0.2);
    border-color: var(--primary-gold);
    color: var(--primary-gold-dark);
}

.servers-stats-bar {
    background-color: var(--bg-card);
    padding: 15px 20px;
    border-radius: 12px;
    border: var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.servers-type-badge {
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 12px;
    background: var(--bg-input);
    border-left: 3px solid var(--primary-gold);
}

.servers-grid {
    margin-bottom: 40px;
}

.servers-item {
    background-color: var(--bg-card);
    border-radius: var(--card-radius);
    overflow: hidden;
    border: var(--card-border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.servers-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-gold);
}

.servers-item.servers-vip {
    border: 3px solid #FFD700 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5) !important;
    animation: vipGlow 2s infinite alternate;
}

.servers-vip-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffd700, #ffa000);
    color: #000;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 2;
}

.servers-image {
    height: 160px;
    overflow: hidden;
}

.servers-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.servers-item:hover .servers-image img {
    transform: scale(1.1);
}

.servers-contents {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.servers-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-gold-dark);
}

.servers-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.servers-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    background: var(--bg-input);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.servers-stats {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.servers-pagination .pagination {
    justify-content: center;
}

.servers-pagination .page-link {
    color: var(--text-main);
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

.servers-pagination .page-item.active .page-link {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: #fff;
}

.servers-empty {
    text-align: center;
    padding: 50px 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: var(--card-border);
    margin-top: 30px;
}

.servers-empty i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.servers-empty p {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 25px;
}

/* Server List Item (Index Page) */
.servers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.server-list-item {
    background: var(--bg-card);
    border: var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
    position: relative;
}

.server-list-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-gold);
}

.server-list-link {
    display: flex;
    align-items: center;
    padding: 15px;
    color: var(--text-main);
}

.server-list-image {
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 20px;
}

.server-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-list-info {
    flex: 1;
}

.server-info-items {
    display: flex;
    color: var(--text-muted);
    margin-top: 5px;
}

.server-info-item i {
    color: var(--primary-gold);
    margin-right: 5px;
}

/* Widgets */
/* Widgets - Popüler Sunucular Modernize */
.popular-servers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popular-server-item {
    background: var(--bg-input);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    overflow: hidden;
    position: relative;
}

.popular-server-item:hover {
    background: var(--bg-card);
    border-color: var(--primary-gold);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.popular-link {
    display: flex;
    align-items: center;
    padding: 12px;
    color: var(--text-main);
    text-decoration: none;
    width: 100%;
}

.popular-link:hover {
    text-decoration: none;
    color: var(--text-main);
}

.popular-rank {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-muted);
    opacity: 0.2;
    width: 30px;
    text-align: center;
    margin-right: 8px;
    font-style: italic;
    line-height: 1;
}

.popular-server-item:nth-child(1) .popular-rank { color: #ffd700; opacity: 1; text-shadow: 0 2px 10px rgba(255, 215, 0, 0.4); }
.popular-server-item:nth-child(2) .popular-rank { color: #c0c0c0; opacity: 0.8; }
.popular-server-item:nth-child(3) .popular-rank { color: #cd7f32; opacity: 0.8; }

.popular-server-image {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.popular-server-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.popular-server-item:hover .popular-server-image img {
    transform: scale(1.1);
}

.popular-server-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popular-server-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
}

.server-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
}

.view-count {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    background: rgba(0,0,0,0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.action-icon {
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    margin-left: 10px;
}

.popular-server-item:hover .action-icon {
    opacity: 1;
    transform: translateX(0);
    color: var(--primary-gold);
}

.popular-server-item.vip-item {
    background: linear-gradient(to right, rgba(201, 177, 140, 0.1), transparent);
    border-left: 3px solid var(--primary-gold);
}

.register-widget .register-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.faq-accordion .card {
    background: transparent;
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.faq-accordion .card-header {
    background: var(--bg-input);
    padding: 0;
    border: none;
}

.faq-accordion .btn-link {
    color: var(--text-main);
    text-decoration: none;
    width: 100%;
    text-align: left;
    padding: 15px;
    font-weight: 600;
}

.faq-accordion .btn-link:hover {
    color: var(--primary-gold);
}

/* --- Server Detail Page (Detay Sayfası) --- */
.sections-detailasim {
    padding-top: 30px;
}

.server-detail-main {
    padding: 20px 0 60px;
}

.server-detail-box {
    background-color: var(--bg-card);
    border-radius: var(--card-radius);
    border: var(--card-border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 30px;
}

.server-detail-banner {
    height: 350px;
    position: relative;
    overflow: hidden;
}

.server-detail-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-detail-vip-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ffd700, #ffa000);
    color: #000;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.server-detail-header-info {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
}

.server-detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-gold-dark);
    margin-bottom: 15px;
}

.server-detail-meta {
    display: flex;
    gap: 10px;
}

.server-detail-content-box {
    padding: 25px;
}

.server-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.server-detail-item {
    background: var(--bg-input);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-gold);
}

.detail-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.detail-value {
    font-weight: 600;
    color: var(--text-main);
    word-break: break-all;
}

.server-detail-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-discord {
    background-color: #5865F2;
    color: white;
}
.btn-discord:hover {
    background-color: #4752C4;
    color: white;
}

.server-detail-box-header {
    padding: 20px 25px;
    background: rgba(201, 177, 140, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.server-detail-box-header h2 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--primary-gold-dark);
}

.server-detail-box-body {
    padding: 25px;
    line-height: 1.7;
    color: var(--text-main);
}

.server-side-box {
    background-color: var(--bg-card);
    border-radius: var(--card-radius);
    border: var(--card-border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    overflow: hidden;
}

.server-side-box-header {
    padding: 15px 20px;
    background: rgba(201, 177, 140, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.server-side-box-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--primary-gold-dark);
}

.server-side-box-body {
    padding: 20px;
}

.countdown-info {
    text-align: center;
    padding: 20px;
}

.timer-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin: 10px 0;
}

.similar-server {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.similar-server:last-child {
    border-bottom: none;
}

.similar-server a {
    display: flex;
    align-items: center;
    width: 100%;
    color: var(--text-main);
}

.similar-server-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.similar-server-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-server-info h4 {
    font-size: 0.95rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}

/* --- Footer --- */
.metin2-footer {
    background-color: #1a1815;
    color: #a39278;
    margin-top: auto;
}

.footer-top-border {
    height: 4px;
    background: linear-gradient(to right, var(--primary-gold), var(--primary-gold-dark));
}

.stats-container {
    background-color: rgba(0,0,0,0.2);
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(201, 177, 140, 0.1);
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-content h4 {
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-main {
    padding: 60px 0;
}

.footer-heading {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #a39278;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-gold);
    color: #000;
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0,0,0,0.3);
    padding: 20px 0;
    font-size: 0.9rem;
}

.footer-ad-frame {
    background: var(--bg-card);
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.footer-ad-frame::before {
    content: 'Reklam';
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary-gold);
    color: #000;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 8px 0 4px 0;
}

.footer-logo img {
    max-height: 60px;
}

/* --- Header & Navbar --- */
.metin2-header {
    background: url('../../assets/images/bg-top.jpg') no-repeat center top;
    background-size: cover;
    position: relative;
    padding: 15px 0 0 0;
    z-index: 1000;
}

.metin2-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-body);
    opacity: 0.95;
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.site-logo-container {
    flex: 0 0 auto;
}

.site-logo {
    max-height: 80px;
    transition: transform var(--transition-fast);
}

.site-logo:hover {
    transform: scale(1.05);
}

.top-ad-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.top-ad {
    background-color: var(--bg-card);
    padding: 5px;
    border-radius: 8px;
    border: var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-width: 100%;
    width: auto;
    min-width: 300px;
}

.top-ad img {
    max-width: 100%;
    height: auto;
    max-height: 90px;
}

.navbar-metin2 {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: 16px;
    margin: 20px auto;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    max-width: 1200px;
    position: relative;
    z-index: 1001;
}

.navbar-metin2 .nav-link {
    color: var(--text-main) !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
    border-radius: 8px;
}

.navbar-metin2 .nav-link:hover, .navbar-metin2 .nav-item.active .nav-link {
    color: var(--primary-gold-dark) !important;
    background-color: rgba(201, 177, 140, 0.15);
}

.navbar-metin2 .nav-link i {
    color: var(--primary-gold);
    margin-right: 5px;
}

.navbar-toggler {
    border-color: var(--border-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%23c9b18c' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-actions .btn {
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.user-actions .btn:hover {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
}

.notification-dropdown {
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background-color: var(--bg-card-overlay);
}

.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-fast);
}

.notification-item:hover {
    background-color: var(--bg-input);
}

.notification-message {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Page Specific Styles --- */

/* Auth Pages (Login/Register) */
.register-content, .login-content {
    padding: 60px 0;
    min-height: calc(100vh - 300px);
}

.register-decoration, .login-decoration {
    position: relative;
    height: 10px;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.decoration-left, .decoration-right {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-gold), transparent);
    flex: 1;
}

.register-footer, .login-footer {
    margin-top: 20px;
    text-align: center;
    color: var(--text-muted);
}

.register-footer a, .login-footer a {
    color: var(--primary-gold);
    font-weight: 600;
}

/* My Servers Page */
.my-servers-header-section, .add-server-header-section, .edit-server-header-section, .profile-header-section, .privacy-header-section, .terms-header-section {
    background: url('../../assets/images/bg-top.jpg') no-repeat center center;
    background-size: cover;
    padding: 60px 0;
    position: relative;
    margin-bottom: 30px;
}

.my-servers-header-section::before, .add-server-header-section::before, .edit-server-header-section::before, .profile-header-section::before, .privacy-header-section::before, .terms-header-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.my-servers-header-section .container, .add-server-header-section .container, .edit-server-header-section .container, .profile-header-section .container, .privacy-header-section .container, .terms-header-section .container {
    position: relative;
    z-index: 1;
}

.page-title-large {
    color: var(--primary-gold);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-description {
    color: #dcdcdc;
    max-width: 800px;
    margin-bottom: 20px;
}

.my-servers-table thead th {
    background-color: var(--bg-input);
    color: var(--primary-gold);
    border-color: var(--border-color);
}

.my-servers-table tbody tr:hover {
    background-color: var(--bg-input);
}

.server-mini-banner {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-badge.approved { background: rgba(46, 125, 50, 0.15); color: var(--accent-green); border: 1px solid var(--accent-green); }
.status-badge.pending { background: rgba(255, 152, 0, 0.15); color: var(--accent-orange); border: 1px solid var(--accent-orange); }
.status-badge.rejected { background: rgba(198, 40, 40, 0.15); color: var(--accent-red); border: 1px solid var(--accent-red); }
.status-badge.vip { background: rgba(255, 215, 0, 0.15); color: #ffb300; border: 1px solid #ffb300; }

.action-btn {
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 4px;
    background: var(--bg-input);
    color: var(--text-muted);
    margin-right: 5px;
}

.action-btn:hover { color: #fff; background: var(--primary-gold); }

/* Add/Edit Server */
.quill-editor {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-main);
}

.ql-toolbar.ql-snow {
    border-color: var(--border-color);
    background-color: var(--bg-input);
}

.ql-container.ql-snow {
    border-color: var(--border-color);
}

.current-banner-image {
    max-width: 300px;
    max-height: 150px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 10px;
}

/* Blog Pages */
.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-image {
    height: 220px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category a {
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.9rem;
}

.blog-card-title {
    font-size: 1.4rem;
    margin: 10px 0;
    font-weight: 700;
}

.blog-card-title a {
    color: var(--text-main);
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: var(--primary-gold);
}

.blog-card-text {
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.blog-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-section {
    background: var(--bg-card);
    border: var(--card-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.sidebar-category-list {
    list-style: none; padding: 0; margin: 0;
}

.sidebar-category-list li { margin-bottom: 10px; }

.sidebar-category-list li a {
    display: block;
    padding: 10px 15px;
    background: var(--bg-input);
    color: var(--text-main);
    border-radius: 6px;
    transition: all 0.2s;
}

.sidebar-category-list li a:hover, .sidebar-category-list li a.active-category {
    background: rgba(201, 177, 140, 0.2);
    color: var(--primary-gold);
    padding-left: 20px;
}

/* Blog Detail Page */
.blog-detail-box {
    background-color: var(--bg-card);
    border-radius: var(--card-radius);
    border: var(--card-border);
    box-shadow: var(--shadow-md);
    padding: 40px;
    margin-bottom: 30px;
    overflow: hidden;
}

.blog-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.blog-detail-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-detail-meta i {
    color: var(--primary-gold);
}

.blog-detail-meta a {
    color: var(--primary-gold);
    font-weight: 600;
}

.blog-detail-content {
    color: var(--text-main);
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-detail-content h2, .blog-detail-content h3, .blog-detail-content h4 {
    color: var(--primary-gold);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-detail-content p {
    margin-bottom: 20px;
}

.blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.back-to-blog {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* Profile Page */
.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item label { color: var(--text-muted); margin: 0; }
.info-item span { color: var(--text-main); font-weight: 600; }

.server-banner-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.no-banner-placeholder {
    background: var(--bg-input);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

/* Privacy & Terms */
.section-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #000;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.privacy-section, .terms-section {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.privacy-section:last-child, .terms-section:last-child { border: none; }

/* Contact Page */
.contact-info-box, .contact-social-box {
    background-color: var(--bg-card);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: var(--card-border);
    margin-bottom: 30px;
}

.contact-info-header, .contact-social-header {
    padding: 15px 20px;
    background-color: var(--bg-input);
    border-bottom: 1px solid var(--border-color);
}

.contact-info-header h3, .contact-social-header h3 {
    color: var(--primary-gold);
    font-size: 1.3rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.contact-info-header h3 i, .contact-social-header h3 i {
    margin-right: 10px;
}

.contact-info-body, .contact-social-body {
    padding: 20px;
}

.contact-info-item {
    display: flex;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 24px;
    color: var(--primary-gold);
    margin-right: 15px;
    min-width: 40px;
    text-align: center;
}

.contact-text h4 {
    color: var(--primary-gold);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--text-muted);
    margin: 0;
}

/* Sidebar Ads */
.sidebar-ads {
    display: none; /* Mobil ve tabletlerde gizli */
}

.sidebars-ad-container {
    width: 100%;
    min-height: 250px;
    background: var(--bg-input);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sidebars-ad-container a {
    display: block;
    width: 100%;
    height: 100%;
}

.ad-img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.ad-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 177, 140, 0.1);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
}

@media (min-width: 1500px) {
    .sidebar-ads {
        display: block; /* Sadece geniş ekranlarda görünür */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        bottom: 600px;
        pointer-events: none;
        z-index: 90;
        display: flex;
        justify-content: space-between;
        padding: 0 10px;
    }
    .sidebars-left-ad {
        position: sticky; top: 120px; width: 160px; height: 750px; margin-top: 250px; pointer-events: auto;
        background: transparent;
        box-shadow: none;
    }
    .sidebars-right-ad {
        position: sticky; top: 120px; width: 160px; height: 750px; margin-top: 250px; pointer-events: auto;
        background: transparent;
        box-shadow: none;
    }
    .sidebars-left-ad::before, .sidebars-right-ad::before {
        content: 'Reklam';
        position: absolute; top: 0; left: 0;
        background: var(--primary-gold); color: #000;
        font-size: 0.7rem; padding: 2px 5px;
    }
}

.sticky-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Scroll Animation Class */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add Server Tips */
.add-server-tips-body {
    padding: 20px;
    color: var(--text-muted);
}

.add-server-tips-body ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.add-server-tips-body li {
    margin-bottom: 10px;
}

/* My Servers Page Specifics */
.my-servers-box-body {
    padding: 0;
}

.my-servers-table td {
    vertical-align: middle;
}

.server-banner-cell {
    position: relative;
    width: 80px;
}

.mini-vip-badge {
    position: absolute;
    top: -5px;
    right: 5px;
    background: linear-gradient(135deg, #ffd700, #ffa000);
    color: #000;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}

.server-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1rem;
}

.server-views {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.my-servers-info-body {
    padding: 20px;
    color: var(--text-muted);
}

.my-servers-info-body ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.my-servers-info-body li {
    margin-bottom: 10px;
}

.my-servers-info-body li strong {
    color: var(--primary-gold);
}

.no-servers {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.no-servers i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    opacity: 0.3;
}