/* Servertop100 Custom Styles */

:root {
    --primary-color: #e41e26;
    --secondary-color: #141414;
    --text-color: #f0f0f0;
    --dark-color: #171923;
    --light-color: #2a2a36;
    --gold-color: #ffd700;
    --accent-color: #ff6b00;
}

body {
    background-color: var(--dark-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-image: linear-gradient(to bottom, #171923, #1a1d28, #1e2030);
}

/* Navbar styling */
.navbar {
    background-color: rgba(10, 12, 20, 0.9);
    border-bottom: 3px solid var(--primary-color);
    padding: 0.8rem 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.navbar-brand img {
    height: 35px;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover::after {
    width: 50%;
}

.navbar-dark .navbar-nav .nav-link.active::after {
    width: 70%;
}

.dropdown-menu {
    background-color: var(--light-color);
    border: 1px solid var(--primary-color);
}

.dropdown-item {
    color: var(--text-color);
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Section titles */
.section-title {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0;
    text-align: center;
    text-transform: uppercase;
    position: relative;
}

.section-title span {
    background-color: var(--dark-color);
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.section-title:before {
    content: '';
    display: block;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 0;
}

/* Featured slider */
.featured-slider {
    background-color: var(--light-color);
    border-bottom: 3px solid var(--primary-color);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.feature-content {
    padding: 2rem;
}

.feature-content h2 {
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-content p {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-indicators {
    bottom: -40px;
}

.carousel-indicators button {
    background-color: var(--primary-color);
}

/* Monthly stats */
.monthly-stats {
    margin: 3rem 0;
}

.stat-card {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
}

/* Listings */
.listings-container {
    margin: 2rem 0;
}

/* Top Listings Section */
.top-listings {
    margin: 2rem 0;
}

.top-listings h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.listing-item {
    background-color: rgba(20, 20, 25, 0.95);
    border: none;
    border-radius: 4px;
    margin-bottom: 1rem;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
}

.listing-rank {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 800;
    margin-right: 1.5rem;
    min-width: 60px;
}

.listing-content {
    flex: 1;
}

.listing-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.listing-title a {
    color: var(--text-color);
    text-decoration: none;
}

.listing-description {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.listing-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-width: 400px;
}

.listing-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.listing-badges {
    display: flex;
    gap: 0.5rem;
}

.listing-votes {
    display: flex;
    gap: 1rem;
}

.vote-count {
    font-weight: 700;
    font-size: 0.9rem;
}

.vote-count.positive {
    color: #4CAF50;
}

.vote-count.negative {
    color: var(--primary-color);
}

.listing-number {
    background-color: var(--primary-color);
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    height: 40px;
    left: 0;
    line-height: 40px;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    z-index: 1;
}

.listing-content {
    padding: 1.5rem;
    padding-left: 80px;
}

.listing-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.listing-content h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.listing-content h3 a:hover {
    color: var(--primary-color);
}

.banner-container {
    background-color: #1a1a1a;
    border-radius: 4px;
    height: 60px;
    margin-bottom: 1rem;
    overflow: hidden;
    width: 468px;
    max-width: 100%;
}

.default-banner {
    background-color: #1a1a1a;
    border: 1px solid #333;
}

.default-banner-content {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    padding: 0.5rem;
}

.default-banner-content h4 {
    color: var(--text-color);
    font-size: 1rem;
    margin: 0;
    text-align: center;
}

.default-banner-content p {
    color: #aaa;
    font-size: 0.75rem;
    margin: 0;
    text-align: center;
}

.listing-details {
    margin-top: 1rem;
}

.language-badge {
    background-color: var(--secondary-color);
    border-radius: 4px;
    color: var(--text-color);
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
}

.gold-badge {
    color: var(--gold-color);
    display: inline-block;
    font-size: 1rem;
    text-shadow: 0 0 5px var(--gold-color);
    animation: pulsate 2s infinite;
}

@keyframes pulsate {
    0% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.7; transform: scale(1); }
}

.stats-row {
    display: flex;
    align-items: center;
}

.stats-row a {
    color: #aaa;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.stats-row a i {
    margin-right: 5px;
}

.stats-row a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.votes {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1rem;
}

/* Listing detail page */
.listing-detail-card {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    padding: 2rem;
}

.listing-header {
    border-bottom: 1px solid #333;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.listing-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.listing-meta {
    margin-bottom: 1rem;
}

.category-badge {
    background-color: var(--primary-color);
    border-radius: 4px;
    color: white;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
    padding: 0.25rem 0.5rem;
}

.listing-stats {
    margin: 1.5rem 0;
}

.stat-box {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.stat-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

.stat-label {
    color: #aaa;
    font-size: 0.875rem;
}

.listing-description {
    margin-top: 2rem;
}

.listing-description h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.sidebar-card {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.sidebar-card h3 {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.server-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.server-info-list li {
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.info-label {
    color: #aaa;
    font-weight: 600;
}

.info-value {
    color: var(--text-color);
    text-align: right;
}

.related-servers-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-servers-list li {
    border-bottom: 1px solid #333;
    padding: 0.5rem 0;
}

.related-servers-list a {
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    text-decoration: none;
}

.related-servers-list a:hover {
    color: var(--primary-color);
}

.vote-count {
    color: var(--primary-color);
    font-size: 0.875rem;
}

/* Vote page */
.vote-card {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    padding: 2rem;
    text-align: center;
}

.vote-header {
    margin-bottom: 1.5rem;
}

.vote-header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.vote-info {
    margin: 1.5rem 0;
}

.vote-countdown {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 2rem 0;
}

.countdown-timer {
    text-align: center;
}

#countdown {
    background-color: var(--secondary-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-family: monospace;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 1rem 2rem;
}

/* Search results */
.search-header {
    margin-bottom: 2rem;
}

.search-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.search-form {
    margin-bottom: 2rem;
}

.listing-item.search-result {
    padding-left: 0;
}

.empty-results {
    margin: 3rem 0;
    text-align: center;
}

/* Forms */
.form-control, .form-select {
    background-color: #333;
    border: 1px solid #555;
    color: #fff;
}

.form-control:focus, .form-select:focus {
    background-color: #444;
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(228, 30, 38, 0.25);
}

/* Form Card Styling */
.card {
    background-color: var(--light-color);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.card-header {
    background-color: var(--secondary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

.card-header h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.card-body {
    background-color: var(--light-color);
    padding: 2rem;
}

/* Form Controls */
.form-label {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    background-color: var(--secondary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-color);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: var(--secondary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(228, 30, 38, 0.25);
    color: var(--text-color);
}

.form-select {
    background-color: var(--secondary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.form-select:focus {
    background-color: var(--secondary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(228, 30, 38, 0.25);
    color: var(--text-color);
}

/* Button Styling */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #c41820;
    transform: translateY(-2px);
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(228, 30, 38, 0.25);
}

/* Alert Styling */
.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* File Input Styling */
.form-control[type="file"] {
    padding: 0.5rem;
}

.form-control[type="file"]::-webkit-file-upload-button {
    background-color: var(--primary-color);
    border: none;
    border-radius: 4px;
    color: white;
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.form-control[type="file"]::-webkit-file-upload-button:hover {
    background-color: #c41820;
}

/* Small Text Styling */
.text-muted {
    color: #aaa !important;
    font-size: 0.875rem;
}

/* Image Preview */
.img-fluid {
    border-radius: 4px;
    margin-bottom: 1rem;
    max-width: 100%;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    border-top: 3px solid var(--primary-color);
    color: var(--text-color);
}

footer h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-color);
}

.social-links a {
    background-color: var(--light-color);
    border-radius: 50%;
    color: var(--text-color);
    display: inline-block;
    font-size: 1rem;
    height: 40px;
    line-height: 40px;
    text-align: center;
    transition: all 0.3s;
    width: 40px;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .stat-card {
        margin-bottom: 1.5rem;
    }
    
    .banner-container {
        height: auto;
        width: 100%;
    }
    
    .listing-content {
        padding-left: 1.5rem;
    }
    
    .listing-number {
        height: 24px;
        line-height: 24px;
        position: relative;
        width: 40px;
    }
}

.premium-featured-carousel {
    background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.featured-premium-container {
    padding: 20px;
}

.premium-feature {
    color: #fff;
}

.premium-badge {
    display: inline-block;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.premium-banner-container {
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.premium-banner-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    border: 2px solid #FFD700;
}

.premium-banner {
    transition: transform 0.3s ease;
}

.premium-banner:hover {
    transform: scale(1.05);
}

.premium-default-banner {
    background: linear-gradient(45deg, #2d2d2d, #1a1a1a);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border: 2px solid #FFD700;
}

.premium-banner-content {
    text-align: center;
    color: #FFD700;
}

.premium-buttons .btn {
    padding: 10px 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.premium-tags .badge {
    padding: 8px 15px;
    font-size: 0.9rem;
    margin-right: 5px;
}