/* Servers Page - Homepage Style CSS */

/* CSS Variables */
:root {
    --bg: #0a0a0a;
    --bg-elev: #121924;
    --card: #0e1520;
    --muted: #9fb1c7;
    --text: #e6eef8;
    --primary: #6cc0ff;
    --accent: #7af0b3;
    --warn: #ffba6b;
    --error: #ff7a7a;
    --glass: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.12);
    --premium-gold: #ffd700;
    --premium-gradient: linear-gradient(135deg, #ffd700, #ffed4e);
}

/* Base Styles */
.servers-page-modern {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.hero-section {
    padding: 2rem 0 1.5rem;
    text-align: center;
    background: rgba(108, 192, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.title-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    min-width: 100px;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero CTA */
.hero-cta {
    margin-top: 1rem;
}

.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent), #6bdb95);
    color: #000;
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(122, 240, 179, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(122, 240, 179, 0.6);
    background: linear-gradient(135deg, #6bdb95, var(--accent));
}

.btn-hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-hero-cta:hover::before {
    left: 100%;
}

.btn-hero-cta .btn-icon {
    width: 20px;
    height: 20px;
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    padding: 2rem 0;
}

.content-main {
    min-width: 0;
}

/* Search & Filters */
.search-filters-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.search-container {
    margin-bottom: 1.5rem;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 192, 255, 0.1);
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--muted);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1rem;
    outline: none;
    padding: 0;
    margin: 0 0.75rem;
}

.search-input::placeholder {
    color: var(--muted);
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    white-space: nowrap;
}

.search-btn:hover {
    background: #5ab0ef;
    transform: translateY(-1px);
}

/* Filter Pills */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.filter-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 2rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.pill-icon {
    font-size: 1rem;
}

.pill-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.125rem 0.375rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Sort Options */
.sort-options {
    display: flex;
    justify-content: flex-end;
}

.sort-select {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
}

/* Section Headers */
.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.crown-icon {
    font-size: 1.5rem;
}

.section-subtitle {
    color: var(--muted);
    font-size: 1rem;
}

/* Premium Servers Section */
.premium-servers-section {
    margin-bottom: 3rem;
}

.premium-servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.premium-server-card {
    background: var(--card);
    border: 2px solid var(--premium-gold);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.premium-server-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}

.premium-banner {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.server-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--premium-gradient);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.server-info-premium {
    padding: 1.5rem;
}

.server-header-premium {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.server-logo-premium {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
}

.server-logo-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.server-name-premium {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verified-icon {
    color: var(--accent);
    font-size: 0.875rem;
}

.server-category-premium {
    color: var(--muted);
    font-size: 0.875rem;
}

.server-stats-premium {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--glass);
    border-radius: 0.75rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.stat-icon {
    font-size: 1rem;
}

.stat-value {
    font-weight: 600;
    color: var(--text);
}

.server-features-premium {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background: var(--glass);
    color: var(--text);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    border: 1px solid var(--border);
}

.server-actions-premium {
    display: flex;
    gap: 0.75rem;
}

.btn-premium {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.btn-review {
    background: linear-gradient(135deg, var(--primary), #4f9eff);
    color: white;
    box-shadow: 0 6px 20px rgba(108, 192, 255, 0.4);
}

.btn-review:hover {
    background: linear-gradient(135deg, #5ab0ef, var(--primary));
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(108, 192, 255, 0.5);
}

.btn-review::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-review:hover::before {
    left: 100%;
}

.btn-vote {
    background: linear-gradient(135deg, var(--premium-gold), #ffed4e);
    color: #000;
    border: 1px solid var(--premium-gold);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-vote:hover {
    background: linear-gradient(135deg, #ffed4e, var(--premium-gold));
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.5);
}

/* Regular Servers Section */
.regular-servers-section {
    margin-bottom: 2rem;
}

.servers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.server-card-horizontal {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.server-card-horizontal:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: rgba(14, 21, 32, 0.9);
    border-color: rgba(108, 192, 255, 0.3);
}

.server-card-horizontal.premium {
    border-color: var(--premium-gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(14, 21, 32, 0.95));
}

.server-logo-section {
    position: relative;
}

.server-logo {
    width: 60px;
    height: 60px;
    border-radius: 0.75rem;
    object-fit: cover;
}

.server-logo-placeholder {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.premium-badge-small {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--premium-gradient);
    color: #000;
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.625rem;
    font-weight: 700;
}

.server-content-horizontal {
    min-width: 0;
}

.server-header-horizontal {
    margin-bottom: 0.75rem;
        text-align: left;
}

.server-name-horizontal {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.server-name-horizontal a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.server-name-horizontal a:hover {
    color: var(--primary);
}

.verified-badge {
    color: var(--accent);
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.server-category-horizontal {
    color: var(--muted);
    font-size: 0.875rem;
}

.server-description-horizontal {
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    text-align: left;
}

.server-features-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag-horizontal {
    background: var(--glass);
    color: var(--text);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    border: 1px solid var(--border);
}

.feature-tag-horizontal.more {
    background: var(--primary);
    color: white;
}

.server-actions-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.server-stats-horizontal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-group {
    display: flex;
    gap: 1rem;
}

.stat-item-horizontal {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.stat-item-horizontal .stat-value {
    color: var(--text);
    font-weight: 600;
}

.action-buttons-horizontal {
    display: flex;
    gap: 0.75rem;
}

.btn-action-horizontal {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-action-horizontal.btn-primary {
    background: linear-gradient(135deg, var(--primary), #4f9eff);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 192, 255, 0.3);
}

.btn-action-horizontal.btn-primary:hover {
    background: linear-gradient(135deg, #5ab0ef, var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 192, 255, 0.4);
}

.btn-action-horizontal.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-action-horizontal.btn-primary:hover::before {
    left: 100%;
}

.btn-action-horizontal.btn-vote {
    background: linear-gradient(135deg, var(--accent), #6bdb95);
    color: #000;
    border: 1px solid var(--accent);
    box-shadow: 0 4px 15px rgba(122, 240, 179, 0.3);
}

.btn-action-horizontal.btn-vote:hover {
    background: linear-gradient(135deg, #6bdb95, var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(122, 240, 179, 0.4);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--muted);
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.empty-description {
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.empty-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-empty {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-empty.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-empty.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

/* Pagination */
.pagination-wrapper {
    margin-top: 2rem;
}

.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.pagination-btn svg {
    width: 16px;
    height: 16px;
}

.pagination-info {
    text-align: center;
    color: var(--text);
}

.current-page {
    font-weight: 700;
    color: var(--primary);
}

.total-pages {
    color: var(--muted);
}

.total-count {
    display: block;
    color: var(--muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Sidebar */
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.widget-icon {
    font-size: 1.25rem;
}

.stats-grid-sidebar {
    display: grid;
    gap: 1rem;
}

.stat-card-sidebar {
    text-align: center;
    padding: 1rem;
    background: var(--glass);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.stat-number-sidebar {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label-sidebar {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-server-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-server-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--glass);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.sidebar-server-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.sidebar-server-logo {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-server-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-logo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.sidebar-server-info {
    flex: 1;
    min-width: 0;
}

.sidebar-server-name {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.sidebar-server-name a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-server-name a:hover {
    color: var(--primary);
}

.sidebar-server-meta {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.sidebar-server-meta span {
    color: var(--muted);
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sidebar-right {
        order: 1; /* Sidebar mobilde alta */
    }
    
    .content-main {
        order: 0; /* Ana içerik mobilde üstte */
    }
    
    .premium-servers-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 0 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .stat-card {
        padding: 0.75rem;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.625rem;
    }
    
    .btn-hero-cta {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .server-card-horizontal {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .server-actions-section {
        align-items: center;
    }
    
    .filter-pills {
        justify-content: center;
    }
    
    .search-input-wrapper {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-btn {
        margin-left: 0;
        align-self: stretch;
    }
    
    .pagination-nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .server-card-horizontal {
        padding: 1rem;
    }
    
    .action-buttons-horizontal {
        flex-direction: column;
        width: 100%;
    }
    
    .stat-group {
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.server-card-horizontal {
    animation: fadeInUp 0.6s ease forwards;
}

.premium-server-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Utility Classes */
.voted {
    background: var(--accent) !important;
    color: #000 !important;
}

.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
