/* Custom CSS Variables */
:root {
    --rust-orange: #cd5c2f;
    --rust-brown: #8b4513;
    --rust-metal: #708090;
}

/* Particle system positioning - behind content */
.particle-container {
    z-index: 1;
}

.container.position-relative {
    z-index: 2;
}

/* Custom purple color for yearly VIP */
.bg-gradient-purple {
    background: linear-gradient(135deg, #6f42c1, #9c27b0) !important;
}

.text-purple {
    color: #6f42c1 !important;
}

.btn-purple {
    background: linear-gradient(135deg, #6f42c1, #9c27b0);
    border: none;
    color: white;
}

.btn-purple:hover {
    background: linear-gradient(135deg, #5a32a3, #7b1fa2);
    color: white;
}

/* Gradient backgrounds for stat cards */
.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd, #6610f2) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #198754, #20c997) !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #0dcaf0, #6f42c1) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
}

/* Card hover effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.server-card:hover,
.vip-card:hover,
.news-card:hover,
.staff-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.3s ease;
}

/* Animated background particles */
.particle-system {
    position: relative;
    width: 100%;
    height: 100%;
}

.rust-particle {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    animation: rustFloat 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes rustFloat {

    0%,
    100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10%,
    90% {
        opacity: 1;
    }

    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.7;
    }
}

/* Spinning animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Progress bar enhancements */
.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.8s ease;
    border-radius: 10px;
}

/* Quick link button effects */
.quick-link-btn {
    min-height: 120px;
    transition: all 0.3s ease;
    border: 2px solid;
}

.quick-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary.quick-link-btn:hover {
    background: var(--bs-primary);
    color: white !important;
}

.btn-outline-secondary.quick-link-btn:hover {
    background: var(--bs-secondary);
    color: white !important;
}

.btn-outline-info.quick-link-btn:hover {
    background: var(--bs-info);
    color: white !important;
}

.btn-outline-success.quick-link-btn:hover {
    background: var(--bs-success);
    color: white !important;
}

.btn-outline-warning.quick-link-btn:hover {
    background: var(--bs-warning);
    color: white !important;
}

.btn-outline-danger.quick-link-btn:hover {
    background: var(--bs-danger);
    color: white !important;
}

/* Staff card enhancements */
.staff-card .position-relative img {
    transition: transform 0.3s ease;
}

.staff-card:hover .position-relative img {
    transform: scale(1.05);
}

/* Feature icon styling */
.feature-icon {
    transition: all 0.3s ease;
}

.card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced accordion */
.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: white;
}

.accordion-button:not(.collapsed)::after {
    filter: invert(1);
}

/* Section spacing */
.servers-section,
.launcher-section,
.news-section,
.vip-packages-section,
.server-features-section,
.staff-team-section,
.quick-links-section,
.faq-section,
.alert-section {
    scroll-margin-top: 80px;
}

/* Dark mode enhancements */
[data-bs-theme="dark"] {
    --bs-body-bg: #1a1a1a;
}

[data-bs-theme="dark"] .card {
    background: #2d2d2d;
    border-color: #404040;
}

[data-bs-theme="dark"] .accordion-item {
    background: #2d2d2d;
    border-color: #404040;
}

[data-bs-theme="dark"] .bg-light {
    background-color: #404040 !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .home-header {
        min-height: 50vh;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .quick-link-btn {
        min-height: 100px;
        font-size: 0.9rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--bs-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary-dark);
}

/* CSS nur für den Staff Team Slider */
.staff-team-section .carousel {
    position: relative;
}

.staff-carousel-prev,
.staff-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    z-index: 10;
    transition: all 0.3s ease;
}

/* Light Mode */
.staff-carousel-prev,
.staff-carousel-next {
    background-color: rgba(0, 0, 0, 0.5);
}

.staff-carousel-prev:hover,
.staff-carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Dark Mode */
[data-bs-theme="dark"] .staff-carousel-prev,
[data-bs-theme="dark"] .staff-carousel-next {
    background-color: rgba(255, 255, 255, 0.5);
}

[data-bs-theme="dark"] .staff-carousel-prev:hover,
[data-bs-theme="dark"] .staff-carousel-next:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* Alternative Dark Mode Detection */
.dark .staff-carousel-prev,
.dark .staff-carousel-next {
    background-color: rgba(255, 255, 255, 0.5);
}

.dark .staff-carousel-prev:hover,
.dark .staff-carousel-next:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.staff-carousel-prev {
    left: -60px;
}

.staff-carousel-next {
    right: -60px;
}

.staff-carousel-indicators {
    position: relative;
    margin-top: 20px;
    margin-bottom: 0;
    justify-content: center;
}

.staff-carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

/* Light Mode Indicators */
.staff-carousel-indicators button {
    background-color: rgba(0, 0, 0, 0.3);
}

.staff-carousel-indicators button.active {
    background-color: var(--bs-primary);
}

/* Dark Mode Indicators */
[data-bs-theme="dark"] .staff-carousel-indicators button {
    background-color: rgba(255, 255, 255, 0.3);
}

[data-bs-theme="dark"] .staff-carousel-indicators button.active {
    background-color: var(--bs-primary);
}

/* Alternative Dark Mode Detection für Indicators */
.dark .staff-carousel-indicators button {
    background-color: rgba(255, 255, 255, 0.3);
}

.dark .staff-carousel-indicators button.active {
    background-color: var(--bs-primary);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .staff-carousel-prev {
        left: -30px;
    }

    .staff-carousel-next {
        right: -30px;
    }
}

@media (max-width: 576px) {

    .staff-carousel-prev,
    .staff-carousel-next {
        display: none;
    }
}