/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b69 30%, #4c1d95 70%, #7c3aed 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(45, 27, 105, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid #a855f7;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    left: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h1 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    color: #a855f7;
    text-shadow: 0 0 10px #a855f7;
}

.nav-logo span {
    font-size: 0.9rem;
    color: #888;
    display: block;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #a855f7;
    text-shadow: 0 0 5px #a855f7;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #a855f7;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #a855f7;
    margin: 3px 0;
    transition: 0.3s;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: rgba(45, 27, 105, 0.95);
    backdrop-filter: blur(10px);
    min-width: 250px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid #a855f7;
    border-radius: 8px;
    z-index: 1001;
    padding: 10px 0;
    margin-top: 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropdown-content:hover {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    z-index: 1002;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    text-shadow: 0 0 5px #a855f7;
    padding-left: 30px;
}

.dropdown-item .class-role {
    font-size: 0.8rem;
    color: #c4b5fd;
    display: block;
}

/* Custom scrollbar for dropdown */
.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: rgba(45, 27, 105, 0.3);
    border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: #a855f7;
    border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #c4b5fd;
}

/* Fade indicators */
.dropdown-content::before {
    content: '';
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to bottom, rgba(45, 27, 105, 0.95), transparent);
    pointer-events: none;
    z-index: 1;
}

.dropdown-content::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to top, rgba(45, 27, 105, 0.95), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b69 30%, #4c1d95 70%, #7c3aed 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%2300d4ff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 10px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    color: #a855f7;
    text-shadow: 0 0 20px #a855f7;
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px #a855f7; }
    to { text-shadow: 0 0 30px #a855f7, 0 0 40px #a855f7; }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #cccccc;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: #a855f7;
    text-shadow: 0 0 10px #a855f7;
}

.stat-label {
    font-size: 1rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #a855f7;
    text-shadow: 0 0 10px #a855f7;
}

/* CC Chains Section */
.cc-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    background: rgba(168, 85, 247, 0.1);
    border: 2px solid #a855f7;
    color: #a855f7;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.tab-btn:hover,
.tab-btn.active {
    background: #a855f7;
    color: #000;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.cc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cc-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.cc-card:hover::before {
    left: 100%;
}

.cc-card:hover {
    transform: translateY(-5px);
    border-color: #a855f7;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
}

.cc-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: #a855f7;
    margin-bottom: 20px;
    text-shadow: 0 0 5px #a855f7;
}

.cc-combo {
    margin-bottom: 20px;
}

.step {
    background: rgba(168, 85, 247, 0.1);
    border-left: 3px solid #a855f7;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 0 8px 8px 0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step:hover {
    background: rgba(168, 85, 247, 0.2);
    transform: translateX(5px);
}

.cc-result {
    color: #00ff88;
    font-style: italic;
    font-weight: 500;
    text-align: center;
    padding: 15px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

/* Class Progression Section */
.class-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.class-tab-btn {
    background: rgba(168, 85, 247, 0.1);
    border: 2px solid #a855f7;
    color: #a855f7;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.class-tab-btn:hover,
.class-tab-btn.active {
    background: #a855f7;
    color: #000;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.class-content {
    display: none;
}

.class-content.active {
    display: block;
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.class-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.class-card:hover {
    transform: translateY(-5px);
    border-color: #a855f7;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
}

.class-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: #a855f7;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 0 5px #a855f7;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.rating-item:hover {
    background: rgba(168, 85, 247, 0.1);
}

.rating-item span:first-child {
    min-width: 120px;
    font-weight: 600;
    color: #a855f7;
    font-size: 0.9rem;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcf7f, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff, #5f27cd, #00d2d3, #ff9f43, #10ac84);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.rating-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.rating-item span:last-child {
    min-width: 200px;
    font-size: 0.85rem;
    color: #cccccc;
    line-height: 1.4;
}

.rating-item.r1 {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.rating-item.r1 span:first-child {
    color: #ffd700;
    font-weight: 700;
}

/* R1 Behaviors Section */
.behaviors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.behavior-category h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    color: #a855f7;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 0 5px #a855f7;
}

.behavior-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.behavior-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.behavior-card:hover {
    transform: translateY(-3px);
    border-color: #a855f7;
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2);
}

.behavior-card h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: #a855f7;
    margin-bottom: 15px;
    text-shadow: 0 0 5px #a855f7;
}

.behavior-card ul {
    list-style: none;
    padding: 0;
}

.behavior-card li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #cccccc;
    line-height: 1.5;
}

.behavior-card li:last-child {
    border-bottom: none;
}

.behavior-card strong {
    color: #00ff88;
    font-weight: 600;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(168, 85, 247, 0.3);
    padding: 30px 0;
    text-align: center;
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(45, 27, 105, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* Mobile Dropdown Fix */
    .dropdown-content {
        position: absolute;
        display: none;
        width: 100%;
        max-height: 300px;
        overflow-y: auto;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        border: 1px solid #a855f7;
        border-radius: 8px;
        background: rgba(45, 27, 105, 0.95);
        margin-top: 0;
        top: calc(100% + 5px);
        left: 0;
        z-index: 1001;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .cc-grid,
    .class-grid,
    .behaviors-grid {
        grid-template-columns: 1fr;
    }
    
    .class-card {
        min-width: unset;
    }
    
    .rating-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .rating-item span:first-child {
        min-width: unset;
    }
    
    .rating-item span:last-child {
        min-width: unset;
    }
    
    .cc-tabs,
    .class-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn,
    .class-tab-btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cc-card,
    .class-card,
    .behavior-card {
        padding: 20px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #2d1b69;
}

::-webkit-scrollbar-thumb {
    background: #a855f7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c4b5fd;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Page-specific styles */
.page-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: #a855f7;
    text-shadow: 0 0 20px #a855f7;
    margin-bottom: 20px;
    text-align: center;
}

.page-subtitle {
    font-size: 1.3rem;
    color: #cccccc;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 300;
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 0;
    margin-top: 70px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.breadcrumb a {
    color: #a855f7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.breadcrumb span {
    color: #888;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.cta-button {
    background: linear-gradient(45deg, #a855f7, #7c3aed);
    color: #000;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5);
}

.cta-button.secondary {
    background: transparent;
    color: #a855f7;
    border: 2px solid #a855f7;
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: #a855f7;
    color: #000;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #a855f7;
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: #a855f7;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #a855f7;
}

.feature-card p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 25px;
}

.feature-link {
    color: #a855f7;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.feature-link:hover {
    color: #ffffff;
}

/* Quick Access Section */
.quick-access {
    padding: 100px 0;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.quick-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
}

.quick-card:hover {
    transform: translateY(-5px);
    border-color: #a855f7;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
}

.quick-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: #a855f7;
    margin-bottom: 20px;
    text-shadow: 0 0 5px #a855f7;
}

.class-links, .chain-links, .fundamental-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.class-link, .chain-link, .fundamental-link {
    color: #cccccc;
    text-decoration: none;
    padding: 8px 15px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid #a855f7;
}

.class-link:hover, .chain-link:hover, .fundamental-link:hover {
    background: rgba(168, 85, 247, 0.2);
    color: #ffffff;
    transform: translateX(5px);
}

/* Rules Section */
.rules-section {
    margin-top: 80px;
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
}

.rules-section h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #a855f7;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 10px #a855f7;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.rule-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.rule-card:hover {
    transform: translateY(-5px);
    border-color: #a855f7;
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2);
}

.rule-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: #a855f7;
    margin-bottom: 15px;
    text-shadow: 0 0 5px #a855f7;
}

.rule-card p {
    color: #cccccc;
    line-height: 1.5;
}

/* Principles Section */
.principles-section {
    margin-top: 80px;
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
}

.principles-section h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #a855f7;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 10px #a855f7;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.principle-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
}

.principle-card:hover {
    transform: translateY(-5px);
    border-color: #a855f7;
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2);
}

.principle-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: #a855f7;
    margin-bottom: 15px;
    text-shadow: 0 0 5px #a855f7;
}

.principle-card p {
    color: #cccccc;
    line-height: 1.6;
}

/* Class Navigation Styles */
.class-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 25px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.search-input::placeholder {
    color: #888;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a855f7;
    font-size: 1.2rem;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    color: #cccccc;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
    color: #ffffff;
}

.class-navigation-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.class-category {
    opacity: 1;
    transition: all 0.3s ease;
}

.class-category.hidden {
    opacity: 0.3;
    pointer-events: none;
}

.category-title {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #a855f7;
    text-shadow: 0 0 10px #a855f7;
    margin-bottom: 30px;
    text-align: center;
}

.class-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.class-card-link {
    text-decoration: none;
    color: inherit;
}

.class-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.class-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.class-card:hover::before {
    left: 100%;
}

.class-card:hover {
    transform: translateY(-10px);
    border-color: #a855f7;
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.2);
}

.class-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.class-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    color: #a855f7;
    margin-bottom: 15px;
    text-shadow: 0 0 5px #a855f7;
}

.class-card p {
    color: #cccccc;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.class-rating {
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Individual Class Page Styles */
.class-header {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(124, 58, 237, 0.1));
    padding: 80px 0;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.class-header-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.class-icon-large {
    font-size: 6rem;
    flex-shrink: 0;
}

.class-info {
    flex: 1;
}

.class-name {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: #a855f7;
    text-shadow: 0 0 20px #a855f7;
    margin-bottom: 10px;
}

.class-role {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 15px;
    font-weight: 500;
}

.class-description {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.6;
    max-width: 600px;
}

.progression-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.progression-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.progression-item:hover {
    border-color: #a855f7;
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.1);
}

.progression-item.r1 {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(124, 58, 237, 0.1));
    border-color: #a855f7;
}

.rating-badge {
    background: linear-gradient(45deg, #a855f7, #7c3aed);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 120px;
    text-align: center;
}

.progression-item.r1 .rating-badge {
    background: linear-gradient(45deg, #ffd700, #ffb700);
    color: #000;
    font-weight: 900;
}

.progression-content {
    flex: 1;
}

.progression-content h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: #a855f7;
    margin-bottom: 10px;
    text-shadow: 0 0 5px #a855f7;
}

.progression-content p {
    color: #cccccc;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.progression-content ul {
    color: #aaaaaa;
    padding-left: 20px;
    line-height: 1.6;
}

.progression-content li {
    margin-bottom: 5px;
}

.abilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.ability-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
}

.ability-card:hover {
    transform: translateY(-5px);
    border-color: #a855f7;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
}

.ability-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: #a855f7;
    margin-bottom: 15px;
    text-shadow: 0 0 5px #a855f7;
}

.ability-card p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.ability-tips {
    background: rgba(168, 85, 247, 0.1);
    border-left: 3px solid #a855f7;
    padding: 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #aaaaaa;
}

.class-navigation {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.class-navigation .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.back-button {
    color: #a855f7;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid #a855f7;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #a855f7;
    color: #000;
}

.class-links {
    display: flex;
    gap: 15px;
}

.class-link {
    color: #cccccc;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.class-link:hover {
    background: rgba(168, 85, 247, 0.2);
    color: #ffffff;
}

/* Responsive Design for Class Pages */
@media (max-width: 768px) {
    .class-header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .class-icon-large {
        font-size: 4rem;
    }
    
    .class-name {
        font-size: 2.5rem;
    }
    
    .progression-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .rating-badge {
        align-self: flex-start;
    }
    
    .class-navigation .container {
        flex-direction: column;
        text-align: center;
    }
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cc-card,
.class-card,
.behavior-card {
    animation: fadeInUp 0.6s ease-out;
}
