/* Godlike Theme - Dark Fantasy RPG Style */
:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --accent-bg: #2a2a2a;
    --border-color: #3a3a3a;
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --accent-gold: #d4af37;
    --accent-red: #dc143c;
    --accent-blue: #4169e1;
    --accent-green: #32cd32;
    --accent-purple: #9370db;
    --glow-gold: rgba(212, 175, 55, 0.3);
    --glow-red: rgba(220, 20, 60, 0.3);
    --glow-blue: rgba(65, 105, 225, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--secondary-bg), var(--accent-bg));
    border: 2px solid var(--accent-gold);
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 0 30px var(--glow-gold);
}

header h1 {
    font-size: 3em;
    color: var(--accent-gold);
    text-shadow: 0 0 20px var(--glow-gold);
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.2em;
}

/* Navigation */
.class-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-btn {
    padding: 15px 30px;
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--accent-bg);
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px var(--glow-gold);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-gold));
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px var(--glow-gold);
}

/* Main Content */
main {
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    min-height: 600px;
}

/* Skill Cards */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-card {
    background: var(--accent-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skill-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px var(--glow-gold);
    transform: translateY(-5px);
}

.skill-card h3 {
    color: var(--accent-gold);
    margin-bottom: 10px;
    font-size: 1.5em;
}

.skill-element {
    display: inline-block;
    padding: 5px 15px;
    background: var(--secondary-bg);
    border-radius: 5px;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.element-fire { color: #ff6347; border-left: 4px solid #ff6347; }
.element-ice { color: #87ceeb; border-left: 4px solid #87ceeb; }
.element-holy { color: #ffd700; border-left: 4px solid #ffd700; }
.element-force { color: #ff8c00; border-left: 4px solid #ff8c00; }
.element-poison { color: #32cd32; border-left: 4px solid #32cd32; }

.skill-preview {
    color: var(--text-secondary);
    font-size: 0.95em;
    margin-top: 10px;
}

/* Skill Detail Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--secondary-bg);
    border: 3px solid var(--accent-gold);
    border-radius: 15px;
    padding: 40px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 50px var(--glow-gold);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-gold);
}

.modal-header h2 {
    color: var(--accent-gold);
    font-size: 2.5em;
    text-shadow: 0 0 10px var(--glow-gold);
}

.close-btn {
    background: var(--accent-red);
    border: none;
    color: white;
    font-size: 1.5em;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #ff0000;
    box-shadow: 0 0 15px var(--glow-red);
    transform: rotate(90deg);
}

/* Level Tables */
.level-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--accent-bg);
    border-radius: 10px;
    overflow: hidden;
}

.level-table th {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-gold));
    color: white;
    padding: 15px;
    text-align: left;
    font-size: 1.1em;
}

.level-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.level-table tr:hover {
    background: var(--secondary-bg);
}

.level-header {
    font-weight: bold;
    color: var(--accent-gold);
}

.level-0-3 { border-left: 4px solid #808080; }
.level-4 { border-left: 4px solid var(--accent-blue); }
.level-5 { border-left: 4px solid var(--accent-purple); }

/* Leveling requirements table styles */
.leveling-table-container {
    margin: 20px 0;
    overflow-x: auto;
}

.leveling-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--accent-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    min-width: 400px;
}

.leveling-table th {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-gold));
    color: white;
    padding: 15px;
    text-align: left;
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leveling-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.leveling-table tr:hover {
    background: var(--secondary-bg);
}

.fail-chance {
    font-weight: 600;
    text-align: center;
    min-width: 80px;
}

.fail-chance.success {
    color: #4ade80;
}

.fail-chance.warning {
    color: #fbbf24;
}

.fail-chance.danger {
    color: #f87171;
}

.fail-chance.info {
    color: #60a5fa;
}

.fail-chance.max-level {
    color: var(--accent-gold);
    font-style: italic;
}

/* Info Boxes */
.info-box {
    background: var(--accent-bg);
    border-left: 4px solid var(--accent-gold);
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
}

.info-box.pvp {
    border-left-color: var(--accent-red);
}

.info-box.pve {
    border-left-color: var(--accent-green);
}

.info-box.animation {
    border-left-color: var(--accent-blue);
}

.info-box h4 {
    color: var(--accent-gold);
    margin-bottom: 8px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: bold;
    margin: 3px;
}

.badge-chain { background: var(--accent-blue); color: white; }
.badge-aoe { background: var(--accent-purple); color: white; }
.badge-dot { background: var(--accent-red); color: white; }
.badge-cc { background: #ff8c00; color: white; }
.badge-buff { background: var(--accent-green); color: white; }

/* Overview Section */
.element-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.element-card {
    background: var(--accent-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.element-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.element-card.fire { border-color: #ff6347; }
.element-card.ice { border-color: #87ceeb; }
.element-card.holy { border-color: #ffd700; }
.element-card.force { border-color: #ff8c00; }
.element-card.poison { border-color: #32cd32; }

.element-card:hover.fire { box-shadow: 0 0 30px rgba(255, 99, 71, 0.5); }
.element-card:hover.ice { box-shadow: 0 0 30px rgba(135, 206, 235, 0.5); }
.element-card:hover.holy { box-shadow: 0 0 30px rgba(255, 215, 0, 0.5); }
.element-card:hover.force { box-shadow: 0 0 30px rgba(255, 140, 0, 0.5); }
.element-card:hover.poison { box-shadow: 0 0 30px rgba(50, 205, 50, 0.5); }

.element-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.element-card h3 {
    color: var(--accent-gold);
    margin-bottom: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    border-top: 2px solid var(--border-color);
    margin-top: 40px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffd700;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .class-nav {
        flex-direction: column;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    .skill-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 20px;
    }
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.comparison-table th {
    background: var(--accent-gold);
    color: var(--primary-bg);
    padding: 12px;
    font-weight: bold;
}

.comparison-table td {
    padding: 10px;
    border: 1px solid var(--border-color);
}

.comparison-table tr:nth-child(even) {
    background: var(--accent-bg);
}

/* Animation Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
    margin: 20px 0;
}

.timeline-item {
    position: relative;
    padding: 15px;
    background: var(--accent-bg);
    border-left: 3px solid var(--accent-gold);
    margin-bottom: 15px;
    border-radius: 5px;
}

.timeline-item::before {
    content: '⚡';
    position: absolute;
    left: -30px;
    top: 15px;
    background: var(--accent-gold);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

.timeline-item h4 {
    color: var(--accent-gold);
    margin-bottom: 5px;
}

/* Stats Display */
.stats-row {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.stat-item {
    background: var(--accent-bg);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    flex: 1;
    min-width: 150px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.stat-value {
    color: var(--accent-gold);
    font-size: 1.3em;
    font-weight: bold;
}

/* Search Box */
.search-box {
    width: 100%;
    padding: 15px;
    background: var(--accent-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.1em;
    margin-bottom: 20px;
}

.search-box:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px var(--glow-gold);
}

/* Section Headers */
.section-header {
    color: var(--accent-gold);
    font-size: 2em;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-gold);
    text-shadow: 0 0 10px var(--glow-gold);
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 50px;
    color: var(--accent-gold);
    font-size: 1.5em;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

