/* Alternative Fantasy Theme - Global Styles */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Roboto+Mono:wght@400;500;600;700&display=swap');

:root {
    /* Background Colors */
    --alt-fantasy-bg-dark: #0d0d0d;
    --alt-fantasy-bg-card: #1a1410;
    --alt-fantasy-bg-hover: #2a2218;
    
    /* Accent Colors */
    --alt-fantasy-gold: #ffd700;
    --alt-fantasy-gold-dark: #d4af37;
    --alt-fantasy-gold-glow: rgba(255, 215, 0, 0.3);
    
    /* Border Colors */
    --alt-fantasy-border: #6b4f2a;
    --alt-fantasy-border-light: #8a6a3a;
    
    /* Text Colors */
    --alt-fantasy-text-primary: #e8dcc8;
    --alt-fantasy-text-secondary: #b3a68f;
    --alt-fantasy-text-muted: #7a7060;
    
    /* Shadow Effects */
    --alt-fantasy-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    --alt-fantasy-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.7);
    --alt-fantasy-glow-gold: 0 0 15px rgba(212, 175, 55, 0.6);
}

body.alternative-fantasy-theme {
    background-color: var(--alt-fantasy-bg-dark);
    color: var(--alt-fantasy-text-primary);
    font-family: 'Cinzel', serif;
}

.alternative-fantasy-page {
    min-height: 100vh;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, var(--alt-fantasy-bg-dark) 100%);
    position: relative;
    overflow-x: hidden;
}

.alternative-fantasy-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(212, 175, 55, 0.02) 2px, rgba(212, 175, 55, 0.02) 4px);
    pointer-events: none;
    z-index: 0;
}

/* Typography Classes */
.fantasy-alt-title {
    font-family: 'Cinzel', serif;
    color: var(--alt-fantasy-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.fantasy-alt-subtitle {
    font-family: 'Cinzel', serif;
    color: var(--alt-fantasy-text-primary);
    letter-spacing: 1px;
}

.fantasy-alt-text {
    font-family: 'Roboto', sans-serif;
    color: var(--alt-fantasy-text-primary);
}

.fantasy-alt-text-secondary {
    font-family: 'Roboto', sans-serif;
    color: var(--alt-fantasy-text-secondary);
}

.fantasy-alt-text-muted {
    color: var(--alt-fantasy-text-muted);
    font-style: italic;
}

.fantasy-alt-gold-text {
    color: var(--alt-fantasy-gold);
    font-weight: bold;
}

.section-header-alt {
    color: var(--alt-fantasy-gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 24px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5), 0 4px 8px rgba(0, 0, 0, 0.8);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-header-alt::before,
.section-header-alt::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--alt-fantasy-gold), transparent);
}

.section-header-alt::before {
    left: -70px;
}

.section-header-alt::after {
    right: -70px;
}

/* Animation Keyframes */
@keyframes cardHover {
    0% {
        transform: translateY(0);
        box-shadow: var(--alt-fantasy-shadow);
    }
    100% {
        transform: translateY(-8px);
        box-shadow: var(--alt-fantasy-shadow-lg), var(--alt-fantasy-glow-gold);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px var(--alt-fantasy-gold-glow);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes goldShine {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

@keyframes rankGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px currentColor);
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 16px currentColor);
        transform: scale(1.05);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Utility Classes */
.fantasy-alt-section {
    background-color: var(--alt-fantasy-bg-dark);
    border: 2px solid var(--alt-fantasy-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--alt-fantasy-shadow);
}

.fantasy-alt-header {
    background: linear-gradient(135deg, var(--alt-fantasy-bg-card) 0%, var(--alt-fantasy-bg-dark) 100%);
    border-bottom: 2px solid var(--alt-fantasy-gold-dark);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px 8px 0 0;
}

.fantasy-alt-card {
    background-color: var(--alt-fantasy-bg-card);
    border: 2px solid var(--alt-fantasy-border);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--alt-fantasy-shadow);
}

.fantasy-alt-card:hover {
    animation: cardHover 0.3s ease forwards;
    border-color: var(--alt-fantasy-gold-dark);
}

.fantasy-alt-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 16px;
}

.fantasy-alt-button {
    background: linear-gradient(135deg, var(--alt-fantasy-gold-dark) 0%, #a67c00 100%);
    color: var(--alt-fantasy-bg-dark) !important;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--alt-fantasy-gold);
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.fantasy-alt-button:hover {
    background: linear-gradient(135deg, var(--alt-fantasy-gold) 0%, var(--alt-fantasy-gold-dark) 100%);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    transform: translateY(-2px);
}

.fantasy-alt-button:active {
    transform: translateY(0);
}

.fantasy-alt-badge {
    background-color: var(--alt-fantasy-gold-dark);
    color: var(--alt-fantasy-bg-dark);
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.fantasy-alt-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--alt-fantasy-gold-dark), transparent);
    margin: 20px 0;
    border: none;
}

.fantasy-alt-frame-gold {
    border: 2px solid var(--alt-fantasy-gold-dark);
    box-shadow: 0 0 10px var(--alt-fantasy-gold-glow), inset 0 0 10px rgba(255, 215, 0, 0.1);
    border-radius: 8px;
}

.fantasy-alt-artifact {
    animation: pulseGlow 2s ease-in-out infinite;
}

.fantasy-alt-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.fantasy-alt-shimmer {
    background: linear-gradient(
        90deg,
        var(--alt-fantasy-bg-card) 0%,
        var(--alt-fantasy-bg-hover) 50%,
        var(--alt-fantasy-bg-card) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

.rank-symbol {
    display: inline-block;
    font-size: 1.5rem;
    margin: 0 8px;
    filter: drop-shadow(0 0 8px currentColor);
}

.rank-symbol.legendary {
    color: var(--fantasy-legendary-color);
    animation: rankGlow 2s ease-in-out infinite;
}

.rank-symbol.epic {
    color: var(--fantasy-epic-color);
    animation: rankGlow 2.5s ease-in-out infinite;
}

.rank-symbol.rare {
    color: var(--fantasy-rare-color);
    animation: rankGlow 3s ease-in-out infinite;
}

.glow-effect {
    animation: glowPulse 2s ease-in-out infinite;
}

.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

.countdown-timer {
    background: linear-gradient(135deg, rgba(26, 20, 16, 0.95) 0%, rgba(15, 12, 10, 0.95) 100%);
    border: 2px solid var(--alt-fantasy-gold);
    border-radius: 12px;
    padding: 16px 24px;
    text-align: center;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    margin: 24px auto;
    max-width: 400px;
}

.countdown-label {
    color: var(--alt-fantasy-gold);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.countdown-value {
    color: var(--alt-fantasy-gold);
    font-family: 'Roboto Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    letter-spacing: 3px;
}

.panel-card {
    background: linear-gradient(135deg, rgba(26, 20, 16, 0.95) 0%, rgba(15, 12, 10, 0.95) 100%);
    border: 2px solid var(--alt-fantasy-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.panel-card:hover {
    border-color: var(--alt-fantasy-gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4), 0 8px 24px rgba(0, 0, 0, 0.6);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid var(--alt-fantasy-gold);
    transition: all 0.2s ease;
}

.stat-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(4px);
}

.stat-label {
    color: var(--alt-fantasy-text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-value {
    color: var(--alt-fantasy-gold);
    font-family: 'Roboto Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
}

.contract-checkbox {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contract-checkbox:hover {
    background: rgba(212, 175, 55, 0.1);
}

.contract-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    accent-color: var(--alt-fantasy-gold);
}

.contract-text {
    color: var(--alt-fantasy-text-primary);
    font-size: 0.85rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--alt-fantasy-bg-dark);
    border: 1px solid var(--alt-fantasy-border);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--alt-fantasy-gold-dark), #8a6a3a);
    border-radius: 6px;
    border: 2px solid var(--alt-fantasy-bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--alt-fantasy-gold), var(--alt-fantasy-gold-dark));
    box-shadow: 0 0 10px var(--alt-fantasy-gold-glow);
}

::-webkit-scrollbar-corner {
    background: var(--alt-fantasy-bg-dark);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--alt-fantasy-gold-dark) var(--alt-fantasy-bg-dark);
}

/* Theme-specific MudBlazor Overrides */
.fantasy-alt-theme .mud-paper {
    background-color: var(--alt-fantasy-bg-card) !important;
    color: var(--alt-fantasy-text-primary) !important;
}

.fantasy-alt-theme .mud-typography {
    color: var(--alt-fantasy-text-primary) !important;
}

.fantasy-alt-theme .mud-input {
    color: var(--alt-fantasy-text-primary) !important;
    border-color: var(--alt-fantasy-border) !important;
}

.fantasy-alt-theme .mud-input:focus {
    border-color: var(--alt-fantasy-gold-dark) !important;
    box-shadow: 0 0 0 0.2rem var(--alt-fantasy-gold-glow) !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .section-header-alt::before,
    .section-header-alt::after {
        width: 40px;
    }
    
    .section-header-alt::before {
        left: -50px;
    }
    
    .section-header-alt::after {
        right: -50px;
    }
}

@media (max-width: 768px) {
    .fantasy-alt-section {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .fantasy-alt-header {
        padding: 16px;
    }
    
    .fantasy-alt-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 12px;
        padding: 12px;
    }
    
    .fantasy-alt-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .fantasy-alt-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .section-header-alt {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .section-header-alt::before,
    .section-header-alt::after {
        display: none;
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
    
    .stat-item {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .fantasy-alt-card-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .fantasy-alt-section {
        padding: 12px;
        border-radius: 8px;
    }
}
