/* ⚖️ ATLAS-CIV-CLICKER | VIEW: MARKET ELITE (Nova v4.0) */
/* @ui-render @view-market @trading @nova-v4-elite @glassmorphism */

/* --- 1. BANNER & HEADER --- */
.market-header-compact {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- 2. TABS & NAVIGATION --- */
.market-tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    padding: 0.8rem 1.8rem;
    cursor: pointer;
    transition: var(--transition-elite);
    position: relative;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tab-btn:hover {
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.tab-btn.active {
    color: var(--color-gold-elite);
    text-shadow: 0 0 20px var(--color-gold-glow);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 10%;
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold-elite), transparent);
    box-shadow: 0 0 15px var(--color-gold-glow);
    border-radius: 2px;
}

/* --- 3. RESSOURCEN-AUSWAHL --- */
.market-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.res-select-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-elite);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.res-select-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.res-select-card.active {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.25) 0%, rgba(250, 204, 21, 0.08) 100%) !important;
    border: 2px solid var(--color-gold-elite) !important;
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.45) !important;
    transform: scale(1.05) translateY(-3px) !important;
}

.res-select-card .material-symbols-outlined {
    font-size: 1.8rem;
    transition: var(--transition-elite);
}

.res-select-card:hover .material-symbols-outlined {
    transform: scale(1.15) rotate(5deg);
}

.res-select-card.active .material-symbols-outlined {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.6));
}

.res-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    opacity: 0.7;
    color: var(--color-gold-elite);
    transition: var(--transition-elite);
}

.res-select-card.active .res-name {
    color: #fff !important;
    opacity: 1 !important;
    font-weight: 900 !important;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.res-amount {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: #fff;
    transition: var(--transition-elite);
}

.res-select-card.active .res-amount {
    color: var(--color-gold-elite) !important;
    text-shadow: 0 0 8px rgba(250, 204, 21, 0.3);
}

/* --- 4. HANDELS-PANEL --- */
.market-trade-area-content {
    background: var(--color-glass-base);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid var(--color-glass-border);
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .market-trade-area-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2rem;
    }
}

.market-action-row {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- 5. INPUTS & SLIDER --- */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    height: 10px;
    border-radius: 5px;
    margin: 25px 0;
    cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 28px;
    width: 28px;
    border-radius: 50%;
    background: var(--color-gold-elite);
    box-shadow: 0 0 20px var(--color-gold-glow), inset 0 0 5px #fff;
    border: 3px solid #fff;
    transition: var(--transition-elite);
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 30px var(--color-gold-glow);
}

.portion-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 2rem;
}

.btn-portion {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 900;
    cursor: pointer;
    transition: var(--transition-elite);
}

.btn-portion:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--color-gold-elite);
    color: var(--color-gold-elite);
}

/* --- 6. ERTRAGS-BANNER --- */
.yield-banner-v4 {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.15), rgba(0, 0, 0, 0.4));
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 20px;
    padding: 1.75rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: inset 0 0 20px rgba(250, 204, 21, 0.05);
}

.yield-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-gold-elite);
    margin-bottom: 8px;
    font-weight: 800;
}

.yield-value {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-premium-trade {
    width: 100%;
    background: linear-gradient(135deg, var(--color-gold-elite), #b45309);
    border: none;
    border-radius: 18px;
    padding: 1.5rem;
    color: #000;
    font-weight: 900;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition-elite);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 15px 40px rgba(180, 83, 9, 0.4);
}

.btn-premium-trade:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(180, 83, 9, 0.6);
}

/* --- 7. LOGISTIK-MONITOR --- */
#caravan-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.monitor-slot-v3 {
    background: rgba(10, 15, 29, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    padding: 1.5rem;
    transition: var(--transition-elite);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.monitor-slot-v3.active {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(250, 204, 21, 0.3);
    box-shadow: inset 0 0 15px rgba(250, 204, 21, 0.05);
}

.slot-status {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
    color: var(--color-gold-elite);
    opacity: 0.8;
}

.slot-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.slot-icon {
    font-size: 2.5rem;
    color: var(--color-gold-elite);
    filter: drop-shadow(0 0 10px var(--color-gold-glow));
}

.slot-name {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 4px;
}

.slot-info {
    font-size: 0.8rem;
    opacity: 0.7;
    color: #94a3b8;
}

.slot-progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.slot-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-gold-elite), #fff);
    box-shadow: 0 0 10px var(--color-gold-glow);
    border-radius: 3px;
}

/* --- 8. MOBILE OPTIMIERUNG --- */
@media (max-width: 600px) {
    .market-selection-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 0.5rem;
        margin-bottom: 1.2rem;
    }
    
    .res-select-card {
        padding: 0.6rem 0.4rem;
        border-radius: 12px;
        gap: 0.3rem;
    }
    
    .res-select-card .material-symbols-outlined {
        font-size: 1.5rem;
    }
    
    .res-name {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }
    
    .res-amount {
        font-size: 0.9rem;
    }
    
    .tab-btn { 
        padding: 0.6rem 1rem; 
        font-size: 0.9rem; 
    }
}
