/* BadCity FiveM Server - Enhanced Styling */

/* General Styles */
body {
    background: linear-gradient(135deg, #121212 0%, #202020 100%);
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    color: #4d9eff;
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: #7cb8ff;
    text-decoration: none;
    transform: translateY(-2px);
}

.container {
    padding: 20px;
}

/* Header and Navigation Styles */
header {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(20, 20, 20, 0.9));
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 10px 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.navbar-brand:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #4d9eff, #7cb8ff);
    transition: width 0.3s ease;
}

.navbar-brand:hover:after {
    width: 100%;
}

.navbar-brand img {
    margin-right: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    position: relative;
    margin: 0 5px;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #4d9eff, #7cb8ff);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover:after, .nav-link.active:after {
    width: 80%;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff;
}

/* Main Content */
main {
    min-height: 600px;
    padding: 20px 0;
}

/* Hero Section */
.hero-section {
    background: url('../images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    padding: 120px 0;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: heroFade 1.5s ease-in-out;
}

@keyframes heroFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85), rgba(20, 20, 20, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
    animation: contentFade 2s ease-in-out;
}

@keyframes contentFade {
    0% { opacity: 0; transform: translateY(40px); }
    50% { opacity: 0.5; }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    letter-spacing: 1px;
    animation: titleGlow 3s infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 0 0 5px rgba(77, 158, 255, 0.5), 0 0 10px rgba(77, 158, 255, 0.3); }
    to { text-shadow: 0 0 20px rgba(77, 158, 255, 0.8), 0 0 30px rgba(77, 158, 255, 0.5); }
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    color: #e0e0e0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(to right, #3a6fe3, #5a4fe3);
    color: white;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 111, 227, 0.5);
    position: relative;
    overflow: hidden;
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(90, 79, 227, 0.6);
    color: white;
}

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

/* Card Styles */
.card {
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
}

.card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #3a6fe3, #5a4fe3);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.card:hover:before {
    transform: scaleX(1);
}

.card-header {
    background: linear-gradient(to right, #2a2a2a, #333);
    border-bottom: 1px solid #444;
    font-weight: bold;
    padding: 15px 20px;
    font-size: 1.1rem;
    color: #ffffff;
}

.card-body {
    padding: 20px;
}

/* Leaderboard Styles */
.leaderboard-card {
    background: linear-gradient(135deg, #232323 0%, #1a1a1a 100%);
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.leaderboard-card .card-header {
    background: linear-gradient(to right, #3a3a3a, #2a2a2a);
    color: #ffffff;
    font-size: 1.25rem;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.leaderboard-table {
    margin-bottom: 0;
    color: #e0e0e0;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 12px 15px;
    vertical-align: middle;
    border-color: #333;
}

.leaderboard-table thead th {
    background-color: #2a2a2a;
    border-bottom: 2px solid #3a3a3a;
    color: #cccccc;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.leaderboard-table tbody tr {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.leaderboard-table tbody tr:hover {
    background-color: #2d2d2d;
    transform: translateX(5px);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: bold;
    color: white;
    margin-right: 5px;
    font-size: 1rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.rank-1 {
    background: linear-gradient(to bottom right, #ffd700, #e6b800);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
    animation: pulse 2s infinite;
}

.rank-2 {
    background: linear-gradient(to bottom right, #c0c0c0, #a8a8a8);
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.rank-3 {
    background: linear-gradient(to bottom right, #cd7f32, #b36a2c);
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.update-time {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* Server Information Section */
.server-info {
    animation: slideIn 1s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.badge.bg-success {
    background: linear-gradient(to right, #28a745, #20c997) !important;
    padding: 6px 12px;
    font-weight: 500;
    animation: statusPulse 2s infinite alternate;
}

@keyframes statusPulse {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

.server-ip {
    display: inline-block;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 12px;
    border-radius: 4px;
    font-family: monospace;
    margin-right: 10px;
}

.copy-button {
    transition: all 0.3s ease;
}

.copy-button:hover {
    background-color: #3a6fe3;
    border-color: #3a6fe3;
}

/* Features Section */
.features-section {
    padding: 40px 0;
	    color: #fff;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #fff;
}

.features-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #3a6fe3, #5a4fe3);
}

.feature-card {
    height: 100%;
    text-align: center;
    padding: 30px 20px;
}

.feature-card i {
    color: #4d9eff;
    margin-bottom: 20px;
    transition: all 0.5s ease;
}

.feature-card:hover i {
    transform: translateY(-10px);
}

.feature-card h4 {
    margin-bottom: 15px;
    font-weight: 600;
    color: #fff;
}

.feature-card p {
    color: #aaa;
}

/* Announcements Styles */
.announcement {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.announcement:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.announcement h5 {
    color: #fff;
    font-weight: 600;
}

.announcement .text-muted {
    font-size: 0.8rem;
}

/* Footer Styles */
footer {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(20, 20, 20, 0.9));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    padding: 40px 0 20px;
    margin-top: 60px;
}

footer h5 {
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

footer h5:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, #3a6fe3, #5a4fe3);
}

.social-icons a {
    margin-right: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    transform: translateY(-5px);
    color: #4d9eff !important;
}

footer .list-unstyled li {
    margin-bottom: 10px;
}

footer .list-unstyled a {
    color: #ccc;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
    display: inline-block;
}

footer .list-unstyled a:before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

footer .list-unstyled a:hover {
    color: #fff;
    transform: translateX(5px);
    text-decoration: none;
}

footer .list-unstyled a:hover:before {
    opacity: 1;
    transform: translateX(0);
}

/* Custom Navigation Styles */
.cta-nav {
    background: linear-gradient(to right, #3a6fe3, #5a4fe3);
    border-radius: 20px;
    padding: 5px 15px !important;
    margin-left: 10px;
    box-shadow: 0 2px 10px rgba(58, 111, 227, 0.3);
    transition: all 0.3s ease;
}

.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(58, 111, 227, 0.5);
}

/* Footer Enhancements */
.footer-brand {
    margin-bottom: 20px;
}

.footer-brand img {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.footer-brand:hover img {
    transform: scale(1.05);
}

.footer-brand h4 {
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 10px;
    color: #fff;
}

.text-light-muted {
    color: #aaa;
}

.server-ip-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.server-ip-footer code {
    background: transparent;
    color: #fff;
    padding: 0;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.footer-bottom {
    padding: 15px 0;
}

/* Join Community Section */
.join-community {
    background: linear-gradient(135deg, #2a2a2a 0%, #333 100%);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.join-community:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png');
    opacity: 0.05;
}

/* Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: #3a6fe3;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    background-color: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #3a6fe3, #5a4fe3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #5a4fe3, #3a6fe3);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.dark-mode-toggle i {
    color: #fff;
    font-size: 1.5rem;
}

/* Tooltip Custom Styling */
.tooltip .tooltip-inner {
    background-color: #3a6fe3;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #3a6fe3;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .navbar-nav {
        margin-top: 15px;
    }
    
    .cta-nav {
        margin-left: 0;
        margin-top: 10px;
        display: inline-block;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .rank-badge {
        width: a0px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .server-info {
        margin-top: 20px;
    }
    
    .social-icons a {
        margin-right: 10px;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-brand img {
        margin-bottom: 15px;
    }
}