/* Language Switcher */
.language-switcher {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    background: linear-gradient(145deg, rgba(40, 44, 52, 0.8), rgba(59, 63, 71, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: linear-gradient(145deg, rgba(50, 54, 62, 0.8), rgba(70, 75, 85, 0.8));
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.language-btn::after {
    margin-left: 0.75rem;
}

.language-switcher .dropdown-menu {
    min-width: auto;
    padding: 0.5rem 0;
    border-radius: 0.5rem;
    background: rgba(36, 39, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.3s;
}

.language-switcher .dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s;
}

.language-switcher .dropdown-item:hover {
    background: rgba(66, 133, 244, 0.1);
    color: #fff;
}

.language-switcher .dropdown-item.active {
    background: rgba(66, 133, 244, 0.2);
    color: #fff;
    font-weight: 500;
}



@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    color: white;
    padding: 120px 0;
    margin-top: -1.5rem;
}

.hero-section h1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(78, 115, 223, 0.3) 0%, rgba(28, 200, 138, 0.3) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Hintergrundbild für die gesamte Website */
body {
    background: url('../assets/background.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 17, 23, 0.8); /* Dunkle Überlagerung für bessere Lesbarkeit */
    z-index: -1;
}

/* Transparente Navigation */
.navbar {
    background-color: rgba(13, 17, 23, 0.7) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Transparenter Footer */
footer.bg-dark {
    background-color: rgba(13, 17, 23, 0.7) !important;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Transparente Boxen/Karten und Sektionen */
.card, .card.bg-dark, .card.bg-dark2, .card.bg-dark3, 
.bg-dark, .bg-dark2, .bg-dark3,
section, .section, 
#server-rates, .server-rates,
.latest-news, .server-status {
    background-color: rgba(22, 27, 34, 0.7) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card.bg-dark2, .bg-dark2 {
    background-color: rgba(30, 37, 46, 0.65) !important;
}

.card.bg-dark3, .bg-dark3 {
    background-color: rgba(20, 25, 35, 0.75) !important;
}

/* Server Rates Bereich speziell anpassen */
#server-rates, .server-rates {
    background-color: rgba(25, 30, 40, 0.7) !important;
    backdrop-filter: blur(8px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Transparente Modals */
.modal-content {
    background-color: rgba(22, 27, 34, 0.9) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Transparente Dropdown-Menüs */
.dropdown-menu {
    background-color: rgba(22, 27, 34, 0.9) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Transparente Tabellen */
.table-dark, .table-dark > thead > tr > th, .table-dark > tbody > tr > td {
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.1);
}

.table-dark.table-hover > tbody > tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(5px);
}

/* Ranking-Tabelle speziell */
.ranking-table-container {
    background-color: rgba(22, 27, 34, 0.7) !important;
    backdrop-filter: blur(8px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* General Styles */
:root {
    --primary: #4e73df;
    --secondary: #858796;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --light: #f8f9fc;
    --dark: #5a5c69;
    --dark2: #2c2f3a;
    --dark3: #1a1d23;
    --bg-dark: #1a1d23;
    --bg-dark2: #2c2f3a;
    --text-muted: #b7b9cc;
    --border-color: #444;
}

body {
    background-color: var(--bg-dark);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: #fff;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #2e59d9;
    text-decoration: none;
}

/* Layout */
.container {
    max-width: 1400px;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 0.35rem;
    margin-bottom: 1.5rem;
    background-color: var(--bg-dark2);
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.2);
}

.card-header {
    padding: 0.75rem 1.25rem;
    margin-bottom: 0;
    background-color: var(--dark3);
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 1.25rem;
}

/* Buttons */
.btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 0.35rem;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
}

.btn-outline-light {
    color: #fff;
    border-color: #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--dark);
}

/* Server Status */
.server-status {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    background-color: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.server-status.online .status-indicator {
    background-color: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.server-status.offline .status-indicator {
    background-color: var(--danger);
    box-shadow: 0 0 10px var(--danger);
}

/* Tables */
.table {
    color: #fff;
    margin-bottom: 0;
}

.table th {
    background-color: var(--dark3);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
}

.table td {
    border-top: 1px solid var(--border-color);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Progress Bars */
.progress {
    background-color: var(--dark3);
    border-radius: 0.35rem;
    height: 1rem;
}

.progress-bar {
    background-color: var(--primary);
    transition: width 1.2s ease-out;
    transform-origin: left center;
}

.progress-bar:not(.progress-animated) {
    transition: none;
}

.progress-container {
    position: relative;
    margin: 0 auto;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    z-index: 2;
}

/* Vermeide Konflikte mit anderen Animationen */
.progress-container .progress-bar {
    will-change: width;
}

.progress-container:not([data-aos]) .progress-bar {
    animation: none !important;
}

/* Stelle sicher, dass Progress Bars eine sanfte Animation haben */
@keyframes progressFill {
    from {
        width: 0%;
    }
    to {
        width: var(--target-width, 0%);
    }
}

/* Custom Colors */
.bg-dark2 {
    background-color: var(--bg-dark2);
}

.bg-dark3 {
    background-color: var(--dark3);
}

.bg-purple {
    background-color: #6f42c1;
}

/* Navigation */
.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.nav-link i {
    margin-right: 0.25rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--dark3);
        padding: 1rem;
        border-radius: 0.35rem;
        margin-top: 0.5rem;
    }
    
    .nav-link {
        padding: 0.5rem 0;
    }
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.server-status.online .status-indicator {
    animation: pulse 2s infinite;
}

/* Stats Counter Animation */
.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    transition: all 0.5s ease-out;
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Footer Styles */
footer {
    background-color: #1a1d20;
    position: relative;
    overflow: hidden;
}

footer h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
}

footer h5::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--primary);
    margin-top: 10px;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    padding-left: 0;
}

.newsletter-form .form-control {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.newsletter-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.25);
}

.newsletter-form .btn-primary {
    padding: 0.375rem 1rem;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.25rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark3);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2e59d9;
}

/* Form Controls */
.form-control, .form-select {
    background-color: var(--dark3);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0.5rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    background-color: var(--dark3);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.25);
}

/* Social Icons */
.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: var(--dark3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

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

/* Event Cards */
.event-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.35rem;
    margin-bottom: 1.5rem;
}

.event-card .event-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
}

/* Responsive Images */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Custom Utilities */
.text-primary {
    color: var(--primary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.border-bottom {
    border-bottom: 1px solid var(--border-color) !important;
}

/* Footer */
footer {
    margin-top: auto;
}

footer h5, footer h6 {
    color: #fff;
    margin-bottom: 1rem;
}

footer ul li {
    margin-bottom: 0.5rem;
}

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Custom Scrollbar for Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--dark3);
}

/* Item Tooltips */
.tooltip {
    --bs-tooltip-bg: rgba(25, 25, 30, 0.98);
    --bs-tooltip-color: #e0e0e0;
    --bs-tooltip-border-color: #444;
    --bs-tooltip-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --bs-tooltip-padding-x: 14px;
    --bs-tooltip-padding-y: 12px;
    --bs-tooltip-font-size: 0.9rem;
    --bs-tooltip-border-radius: 6px;
    --bs-tooltip-arrow-width: 0.8rem;
    --bs-tooltip-arrow-height: 0.4rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
    z-index: 1080;
}

.tooltip.show {
    opacity: 1;
}

/* Ensure tooltip is above other elements */
.tooltip.custom-tooltip {
    z-index: 1080;
}

/* Fix for tooltip positioning */
.tooltip-arrow {
    z-index: 1081;
}

.tooltip-inner {
    max-width: 300px;
    padding: var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);
    text-align: left;
    font-size: var(--bs-tooltip-font-size);
    line-height: 1.5;
    color: var(--bs-tooltip-color);
    background-color: var(--bs-tooltip-bg);
    border: 1px solid var(--bs-tooltip-border-color);
    border-radius: var(--bs-tooltip-border-radius);
    box-shadow: var(--bs-tooltip-box-shadow);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Tooltip arrow styling */
.tooltip-arrow {
    position: absolute;
    width: var(--bs-tooltip-arrow-width);
    height: var(--bs-tooltip-arrow-height);
}

.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow,
.bs-tooltip-top .tooltip-arrow {
    bottom: calc(-1 * var(--bs-tooltip-arrow-height));
}

.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
    top: 0;
    border-width: var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * 0.5) 0;
    border-top-color: var(--bs-tooltip-border-color);
}

.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow,
.bs-tooltip-end .tooltip-arrow {
    left: calc(-1 * var(--bs-tooltip-arrow-height));
    width: var(--bs-tooltip-arrow-height);
    height: var(--bs-tooltip-arrow-width);
}

.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before,
.bs-tooltip-end .tooltip-arrow::before {
    right: 0;
    border-width: calc(var(--bs-tooltip-arrow-width) * 0.5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * 0.5) 0;
    border-right-color: var(--bs-tooltip-border-color);
}

.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow,
.bs-tooltip-bottom .tooltip-arrow {
    top: calc(-1 * var(--bs-tooltip-arrow-height));
}

.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before,
.bs-tooltip-bottom .tooltip-arrow::before {
    bottom: 0;
    border-width: 0 calc(var(--bs-tooltip-arrow-width) * 0.5) var(--bs-tooltip-arrow-height);
    border-bottom-color: var(--bs-tooltip-border-color);
}

.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow,
.bs-tooltip-start .tooltip-arrow {
    right: calc(-1 * var(--bs-tooltip-arrow-height));
    width: var(--bs-tooltip-arrow-height);
    height: var(--bs-tooltip-arrow-width);
}

.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before,
.bs-tooltip-start .tooltip-arrow::before {
    left: 0;
    border-width: calc(var(--bs-tooltip-arrow-width) * 0.5) 0 calc(var(--bs-tooltip-arrow-width) * 0.5) var(--bs-tooltip-arrow-height);
    border-left-color: var(--bs-tooltip-border-color);
}

/* Tooltip content styles */
.tooltip-inner .item-name {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.3rem;
    font-size: 1.05em;
    display: block;
}

.tooltip-inner .item-description {
    color: #b0b0b0;
    font-style: italic;
    margin-bottom: 0.5rem;
    font-size: 0.95em;
    display: block;
}

.tooltip-inner .item-upgrade {
    color: #4fc3f7;
    font-weight: bold;
    margin-bottom: 0.3rem;
    display: block;
}

.tooltip-inner .item-stats {
    color: #81c784;
    margin: 0.5rem 0;
    font-weight: 500;
    font-size: 0.95em;
    display: block;
}

.tooltip-inner .item-durability {
    margin-top: 0.5rem;
    padding-top: 0.3rem;
    border-top: 1px dashed #444;
    font-size: 0.9em;
    display: block;
}

.tooltip-inner .item-durability.text-danger {
    color: #ff6b6b;
}

.tooltip-inner .item-time {
    color: #ffb74d;
    margin-top: 0.3rem;
    font-size: 0.85em;
    display: block;
}

.tooltip-inner .item-locked {
    margin-top: 0.5rem;
    padding-top: 0.3rem;
    border-top: 1px dashed #444;
    color: #ffb74d;
    font-weight: bold;
    font-size: 0.9em;
    display: block;
}

/* Ensure tooltip content is properly spaced */
.tooltip-inner > *:last-child {
    margin-bottom: 0;
}

/* Custom tooltip theme */
.tooltip.custom-tooltip {
    --bs-tooltip-bg: rgba(25, 25, 30, 0.98);
    --bs-tooltip-border-color: #444;
}

.tooltip.custom-tooltip .tooltip-inner {
    background-color: var(--bs-tooltip-bg);
    border-color: var(--bs-tooltip-border-color);
}

/* Inventory Slots */
.inventory-slot {
    position: relative;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.3);
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.inventory-slot:hover {
    border-color: #666;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.inventory-slot.empty-slot {
    border: 1px dashed #444;
    background-color: rgba(0, 0, 0, 0.15);
}

.inventory-slot.empty-slot:hover {
    border-color: #666;
}

.inventory-slot .item-icon {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.inventory-slot .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 0.5rem;
}

.durability-bar {
    position: absolute;
    bottom: 2px;
    left: 5%;
    width: 90%;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.durability-bar .progress-bar {
    height: 100%;
    transition: width 0.3s ease;
}

/* Progress Bar Auto-Update: Verhindere Animationen */
.progress-bar.auto-updated {
    transition: none !important;
    animation: none !important;
}

.progress-bar.auto-updated * {
    transition: none !important;
    animation: none !important;
}
