/* =============================================================================
   MERALOOT STRUCTURED NAVIGATION SYSTEM - Enhanced Version
   Now using MeraLoot Core CSS Variables for consistency
   
   Import meraloot-core.css first, then this file for structured navigation
   ============================================================================= */

/* Import core styles */
@import url('meraloot-core.css');

/* Additional structured navigation specific styles */

/* === 2. FIRE PARTICLE BACKGROUND ANIMATION === */
.fire-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.fire-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, var(--primary-color), transparent);
    border-radius: 50%;
    animation: float 8s infinite linear;
}

.fire-particles .particle:nth-child(1) { left: 20%; animation-delay: 0s; animation-duration: 10s; }
.fire-particles .particle:nth-child(2) { left: 50%; animation-delay: 2s; animation-duration: 12s; }
.fire-particles .particle:nth-child(3) { left: 80%; animation-delay: 4s; animation-duration: 8s; }
.fire-particles .particle:nth-child(4) { left: 10%; animation-delay: 6s; animation-duration: 14s; }
.fire-particles .particle:nth-child(5) { left: 70%; animation-delay: 8s; animation-duration: 9s; }

@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

/* === 3. NAVIGATION COMPONENTS === */

/* === 3.1 Main Navigation Bar === */
.structured-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    z-index: 1000;
    padding: 0 20px;
    transition: var(--transition-fast);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: #ff6b35;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #ff4444;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    list-style: none;
    gap: 40px;
    margin: 0;
}

.desktop-nav-item {
    position: relative;
}

.desktop-nav-main {
    text-decoration: none;
    color: #2c2c2c;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

.desktop-nav-main:hover,
.desktop-nav-item.active .desktop-nav-main {
    background: linear-gradient(135deg, #ff6b35, #ff4444);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

/* Desktop Dropdown */
.desktop-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
    min-width: 280px;
    border: 2px solid #f0f0f0;
}

.desktop-nav-item:hover .desktop-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content {
    padding: 25px;
}

.dropdown-section {
    margin-bottom: 20px;
}

.dropdown-section:last-child {
    margin-bottom: 0;
}

.dropdown-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.dropdown-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-links li {
    margin-bottom: 8px;
}

.dropdown-links a {
    text-decoration: none;
    color: #2c2c2c;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-links a:hover,
.dropdown-links a.available:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    border-left-color: #ff6b35;
}

/* Status Indicators */
.status-indicator {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: auto;
}

.status-available { background: #4CAF50; color: white; }
.status-coming-soon { background: #ff6b35; color: white; animation: pulse-badge 2s infinite; }
.status-soon { background: #ffa502; color: white; }
.status-hidden { display: none; }

/* Coming Soon & Disabled Links */
.dropdown-links a.coming-soon, .dropdown-links a.soon { color: #999; opacity: 0.7; }
.dropdown-links a.not-available { color: #ccc; cursor: not-allowed; opacity: 0.5; }

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background-color: rgba(255, 107, 53, 0.1);
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #2c2c2c;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
    background: #ff6b35;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
    background: #ff6b35;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    padding: 30px 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Mobile Navigation Items */
.mobile-nav-category {
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 107, 53, 0.1);
    padding-bottom: 25px;
}

.mobile-nav-category:last-child {
    border-bottom: none;
}

.mobile-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
    user-select: none;
}

.mobile-category-title {
    color: #2c2c2c;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.expand-icon {
    font-size: 18px;
    color: #ff6b35;
    transition: transform 0.3s ease;
}

.mobile-nav-category.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Mobile Subcategories */
.mobile-subcategories {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 20px;
}

.mobile-nav-category.expanded .mobile-subcategories {
    max-height: 500px;
}

.mobile-subcategory {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-subcategory:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.mobile-subcategory-title {
    font-size: 18px;
    font-weight: 600;
    color: #ff6b35;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-subcategory-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-subcategory-links li {
    margin-bottom: 8px;
}

.mobile-subcategory-links a {
    color: #2c2c2c;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.mobile-subcategory-links a:hover,
.mobile-subcategory-links a.available:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    border-left-color: #ff6b35;
}

.mobile-subcategory-links a.coming-soon, .mobile-subcategory-links a.soon { color: #999; opacity: 0.8; }
.mobile-subcategory-links a.not-available { color: #ccc; opacity: 0.5; }

/* Category Cards Container */
.categories-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}

.categories-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: #2c2c2c;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ff4444 0%, #ff6b35 50%, #ffa502 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.categories-subtitle {
    text-align: center;
    font-size: 20px;
    color: #666;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Category Cards Grid */
.category-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Individual Category Card */
.category-card-structured {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 2px solid #f5f5f5;
}

.category-card-structured:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #ff6b35;
}

/* Card Image */
.card-image-structured {
    height: 220px;
    background: linear-gradient(135deg, #ff6b35, #ff4444);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.card-badge-structured {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Content */
.card-content-structured {
    padding: 30px;
    position: relative;
}

.card-title-structured {
    font-size: 28px;
    font-weight: 800;
    color: #2c2c2c;
    margin-bottom: 12px;
}

.card-description-structured {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 16px;
}

/* Action Buttons */
.card-actions-structured {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.action-btn-structured {
    background: #f8f9fa;
    color: #2c2c2c;
    padding: 14px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.action-btn-structured:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.action-btn-structured.primary {
    background: linear-gradient(135deg, #ff6b35, #ff4444);
    color: white;
    font-weight: 700;
}

.action-btn-structured.primary:hover {
    background: linear-gradient(135deg, #ff4444, #ff6b35);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

.action-btn-structured.disabled {
    background: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

.action-btn-structured.disabled:hover {
    background: #e9ecef;
    color: #adb5bd;
    transform: none;
    box-shadow: none;
}

.action-btn-structured.coming-soon {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
    border: 2px solid #ffcc02;
    position: relative;
    opacity: 0.85;
}

/* Verstecke das allgemeine "Bald" Badge für structured buttons */
.action-btn-structured.coming-soon::after {
    display: none !important;
}

/* Verstecke coming-soon-badge spans in structured buttons */
.action-btn-structured.coming-soon .coming-soon-badge {
    display: none !important;
}

/* Status Badge System - hover-based indicators on buttons */
.action-btn-structured {
    position: relative;
}

/* Available Status Badge - grünes Häkchen für primary buttons */
.action-btn-structured.primary::before,
.action-btn-structured:not(.coming-soon):not(.disabled)::before {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.action-btn-structured.primary:hover::before,
.action-btn-structured:not(.coming-soon):not(.disabled):hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Coming Soon Status Badge - orange Sanduhr */
.action-btn-structured.coming-soon::before {
    content: '⏳';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9800, #ff6b35);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.action-btn-structured.coming-soon:hover::before {
    opacity: 1;
    transform: scale(1);
}

.action-btn-structured.coming-soon:hover {
    background: linear-gradient(135deg, #ffe0b2, #ffcc02);
    transform: translateY(-1px);
    opacity: 1;
}

/* Disabled Status Badge - graues X */
.action-btn-structured.disabled::before {
    content: '✕';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #757575, #424242);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(117, 117, 117, 0.4);
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.action-btn-structured.disabled:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* ================================================================
   COMPACT BUTTONS STATUS SYSTEM (Mobile)
   ================================================================ */

/* Compact buttons müssen auch relative positioniert sein */
.compact-btn {
    position: relative;
}

/* Available Status Badge für compact buttons - hover-based */
.compact-btn.primary::before,
.compact-btn:not(.coming-soon):not(.disabled)::before {
    content: '✓';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.4);
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.compact-btn.primary:hover::before,
.compact-btn:not(.coming-soon):not(.disabled):hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Coming Soon Status Badge für compact buttons - hover-based */
.compact-btn.coming-soon::before {
    content: '⏳';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9800, #ff6b35);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.4);
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.compact-btn.coming-soon:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Disabled Status Badge für compact buttons - hover-based */
.compact-btn.disabled::before {
    content: '✕';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #757575, #424242);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(117, 117, 117, 0.4);
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.compact-btn.disabled:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Verstecke coming-soon badges in compact buttons */
.compact-btn.coming-soon::after,
.compact-btn.coming-soon .coming-soon-badge {
    display: none !important;
}

/* Coming Soon Card Badge - entfernt, wird jetzt über Button-Status-Icons gehandhabt */

/* Gentle pulse animation für Status-Badges */
@keyframes pulse-gentle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.05);
    }
}

/* Touch-freundliche Status-Badges für kleinere Bildschirme */
@media (max-width: 1024px) {
    /* Compact buttons - Status-Badges immer sichtbar auf Touch-Geräten */
    .compact-btn.primary::before,
    .compact-btn:not(.coming-soon):not(.disabled)::before,
    .compact-btn.coming-soon::before,
    .compact-btn.disabled::before {
        opacity: 1;
        transform: scale(1);
    }
    
    /* Structured buttons - Status-Badges beim Tap/Touch sichtbar */
    .action-btn-structured:active::before,
    .action-btn-structured.primary:active::before,
    .action-btn-structured.coming-soon:active::before,
    .action-btn-structured.disabled:active::before {
        opacity: 1;
        transform: scale(1);
    }
}

/* Desktop Responsive */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
    
    .desktop-nav {
        display: flex;
    }
    
    .mobile-menu {
        display: none;
    }
    
    .category-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
    
    .categories-title {
        font-size: 48px;
        margin-bottom: 25px;
    }
    
    .categories-subtitle {
        font-size: 22px;
        margin-bottom: 80px;
    }
    
    .card-actions-structured {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .category-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .card-image-structured {
        height: 240px;
    }
}

@media (min-width: 1200px) {
    .nav-wrapper {
        padding: 0 40px;
    }
    
    .desktop-nav {
        gap: 50px;
    }
}


/* Utility Classes */
.hide-mobile {
    display: none;
}

/* Mobile Compact Cards Container */
.mobile-compact-cards {
    display: none; /* Hidden by default, shown on mobile */
    margin-bottom: 40px;
}

/* Mobile Compact Cards */
.category-card-compact {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid #f5f5f5;
    cursor: pointer;
    display: none; /* Hidden by default, shown on mobile */
    margin-bottom: 15px;
    position: relative;
}

.category-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #ff6b35;
}

.compact-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.compact-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6b35, #ff4444);
    color: white;
}

.compact-content {
    flex: 1;
    min-width: 0;
}

.compact-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.compact-description {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 0;
}

.compact-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.compact-btn {
    background: #f8f9fa;
    color: #2c2c2c;
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.compact-btn:hover {
    background: var(--brand-primary);
    color: white;
}

.compact-btn.coming-soon:hover {
    background: linear-gradient(135deg, #ffe0b2, #ffcc02);
    opacity: 1;
}

.compact-btn.primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
}

.compact-btn.coming-soon {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
    border: 1px solid #ffcc02;
    position: relative;
    opacity: 0.85;
}


.compact-btn.disabled {
    background: #f5f5f5;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

.compact-btn.disabled:hover {
    background: #f5f5f5;
    color: #adb5bd;
}


/* Coming Soon Card States */
.category-card-compact.coming-soon .compact-icon {
    background: linear-gradient(135deg, #ffa726, #ffb74d);
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }
    
    .hide-desktop {
        display: none;
    }
}

@media (max-width: 767px) {
    /* Show compact cards on mobile, hide desktop cards */
    .mobile-compact-cards {
        display: block;
    }
    
    .category-cards {
        display: none;
    }
    
    .category-card-structured {
        display: none;
    }
    
    .category-card-compact {
        display: block;
    }
}