/* ============================================
   AZURE CLOUD FORTRESS - Main Styles
   AZ-900 Certification Game
   ============================================ */

/* CSS Variables */
:root {
    --azure-blue: #0078D4;
    --azure-dark: #003366;
    --azure-light: #50A8FF;
    --azure-glow: #00BFFF;
    --cloud-white: #F0F8FF;
    --sky-gradient-top: #0A1628;
    --sky-gradient-bottom: #1a3a5c;
    --gold: #FFD700;
    --success: #00C853;
    --danger: #FF4444;
    --card-bg: rgba(0, 60, 120, 0.4);
    --card-border: rgba(0, 180, 255, 0.3);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(180deg, var(--sky-gradient-top) 0%, var(--sky-gradient-bottom) 100%);
    min-height: 100vh;
    color: var(--cloud-white);
    overflow-x: hidden;
}

/* Animated Cloud Background */
.cloud-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-cloud linear infinite;
}

.cloud-1 {
    width: 400px;
    height: 150px;
    top: 10%;
    left: -400px;
    animation-duration: 60s;
}

.cloud-2 {
    width: 300px;
    height: 100px;
    top: 30%;
    left: -300px;
    animation-duration: 45s;
    animation-delay: -20s;
}

.cloud-3 {
    width: 500px;
    height: 180px;
    top: 50%;
    left: -500px;
    animation-duration: 70s;
    animation-delay: -35s;
}

.cloud-4 {
    width: 250px;
    height: 90px;
    top: 70%;
    left: -250px;
    animation-duration: 55s;
    animation-delay: -10s;
}

.cloud-5 {
    width: 350px;
    height: 120px;
    top: 85%;
    left: -350px;
    animation-duration: 50s;
    animation-delay: -25s;
}

@keyframes float-cloud {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(100vw + 500px));
    }
}

/* Particles Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Container */
.container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    padding: 30px 0;
}

.logo-container {
    position: relative;
    display: inline-block;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 100px;
    background: radial-gradient(ellipse, var(--azure-glow) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(30px);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.1); }
}

.main-title {
    font-family: 'Orbitron', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.title-mr {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--cloud-white);
    letter-spacing: 8px;
    opacity: 0.9;
}

.title-azure {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--azure-light) 0%, var(--azure-glow) 50%, var(--cloud-white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 191, 255, 0.5);
    letter-spacing: 4px;
}

.subtitle {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: var(--gold);
    margin-top: 15px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.stat-icon {
    font-size: 1.2rem;
}

.stat-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Domain Grid */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 30px 0;
    flex: 1;
}

/* Domain Cards */
.domain-card {
    position: relative;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    overflow: hidden;
}

.domain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--azure-blue), var(--azure-glow), var(--azure-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.domain-card:hover {
    transform: translateY(-8px);
    border-color: var(--azure-glow);
    box-shadow: 0 20px 60px rgba(0, 191, 255, 0.3);
}

.domain-card:hover::before {
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--azure-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.domain-card:hover .card-glow {
    opacity: 0.1;
}

.card-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Boss Portrait */
.boss-portrait {
    position: relative;
    flex-shrink: 0;
}

.portrait-frame {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--azure-light);
    background: linear-gradient(135deg, var(--azure-dark) 0%, var(--sky-gradient-top) 100%);
    box-shadow: 0 0 25px rgba(0, 191, 255, 0.4);
}

.domain1-frame {
    border-color: #64B5F6;
    box-shadow: 0 0 25px rgba(100, 181, 246, 0.5);
}

.domain2-frame {
    border-color: #4FC3F7;
    box-shadow: 0 0 25px rgba(79, 195, 247, 0.5);
}

.domain3-frame {
    border-color: #4DD0E1;
    box-shadow: 0 0 25px rgba(77, 208, 225, 0.5);
}

.pbq-frame {
    border-color: var(--gold);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
}

.boss-icon {
    font-size: 2.5rem;
}

.boss-level {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: var(--azure-blue);
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    border: 2px solid var(--azure-glow);
}

.pbq-level {
    background: var(--gold);
    color: #1a1a2e;
    border-color: #FFE44D;
}

/* Domain Info */
.domain-info {
    flex: 1;
}

.boss-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cloud-white);
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

.pbq-name {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.domain-name {
    font-size: 1rem;
    color: var(--azure-light);
    margin-bottom: 10px;
}

.domain-tag {
    display: inline-block;
    background: rgba(0, 120, 212, 0.3);
    border: 1px solid var(--azure-light);
    color: var(--azure-light);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 15px;
    margin-bottom: 10px;
}

.pbq-tag {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--gold);
    color: var(--gold);
}

.question-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.count-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--cloud-white);
}

.count-label {
    font-size: 0.9rem;
    color: var(--azure-light);
    opacity: 0.8;
}

/* PBQ Card Special Styling */
.pbq-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 60, 120, 0.4) 100%);
}

.pbq-card:hover {
    border-color: var(--gold);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.2);
}

.pbq-glow {
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--azure-light);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, var(--sky-gradient-top) 0%, var(--azure-dark) 100%);
    border: 2px solid var(--azure-glow);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 60px rgba(0, 191, 255, 0.4);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--cloud-white);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
}

.modal-boss-portrait {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--azure-glow);
    background: linear-gradient(135deg, var(--azure-dark) 0%, var(--sky-gradient-top) 100%);
}

.modal-boss-portrait .boss-icon {
    font-size: 2.5rem;
}

.modal-boss-info h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--cloud-white);
    margin-bottom: 5px;
}

.modal-boss-info p {
    color: var(--azure-light);
    margin-bottom: 10px;
}

.select-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--cloud-white);
    text-align: center;
    margin-bottom: 10px;
}

.select-subtitle {
    text-align: center;
    color: var(--azure-light);
    opacity: 0.8;
    margin-bottom: 20px;
}

/* Set Selection Cards (matching hotspot style) */
.sets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-width: 100%;
}

.set-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.set-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.set-card:hover::before {
    opacity: 1;
}

.set-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.set-card.random {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 159, 64, 0.1) 100%);
    border-color: rgba(255, 107, 107, 0.3);
}

.set-card.random:hover {
    border-color: rgba(255, 107, 107, 0.6);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.set-card.battle-all {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-color: rgba(102, 126, 234, 0.4);
}

.set-card.battle-all:hover {
    border-color: rgba(102, 126, 234, 0.7);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
}

.set-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.set-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin: 10px 0;
    font-family: 'Rajdhani', sans-serif;
    position: relative;
}

.set-range {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Rajdhani', sans-serif;
}

.set-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .title-azure {
        font-size: 2.5rem;
    }
    
    .title-mr {
        font-size: 1rem;
    }
    
    .stats-bar {
        gap: 15px;
    }
    
    .stat-item {
        padding: 8px 15px;
    }
    
    .domain-grid {
        grid-template-columns: 1fr;
    }
    
    .card-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Hotspot Card Styling */
.hotspot-card {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 87, 34, 0.2) 100%);
}

.hotspot-frame {
    border-color: #FF9800;
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.4);
}

.hotspot-glow {
    background: radial-gradient(circle, rgba(255, 152, 0, 0.3) 0%, transparent 70%);
}

.hotspot-level {
    background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
}

.hotspot-name {
    color: #FF9800;
}

.hotspot-tag {
    background: rgba(255, 152, 0, 0.3);
    border-color: #FF9800;
}

.hotspot-card:hover {
    border-color: #FF9800;
    box-shadow: 0 15px 50px rgba(255, 152, 0, 0.4);
}

/* Full Exam Card Styling */
.fullexam-card .fullexam-glow {
    background: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, transparent 70%);
}

.fullexam-level {
    background: linear-gradient(135deg, #8A2BE2 0%, #6A0DAD 100%);
}

.fullexam-name {
    color: #9370DB;
}

.fullexam-tag {
    background: rgba(138, 43, 226, 0.3);
    border-color: #8A2BE2;
}

.fullexam-card:hover {
    border-color: #8A2BE2;
    box-shadow: 0 15px 50px rgba(138, 43, 226, 0.4);
}
