/* Classes Index & Individual Class Pages Styles */

.classes-index-page,
.class-detail-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    color: #e0e0e0;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "\2192";
    margin-left: 0.5rem;
    color: #888;
}

.breadcrumb a {
    color: #4a9eff;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #6bb3ff;
    text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
    color: #ccc;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.8), rgba(40, 20, 60, 0.6));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-section h1 {
    font-size: 3rem;
    font-family: 'Cinzel', serif;
    color: #ffd700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #d0d0d0;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filter Section */
.filter-section {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(30, 30, 50, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(50, 50, 70, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #4a9eff, #7b2cbf);
    border-color: #4a9eff;
    color: white;
    font-weight: bold;
}

/* Classes Grid */
.classes-grid-section {
    margin-bottom: 3rem;
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.class-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    border: 2px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    padding: 0;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.class-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.class-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

.class-card.warrior:hover { border-color: #ef4444; box-shadow: 0 15px 40px rgba(239, 68, 68, 0.4); }
.class-card.wizard:hover { border-color: #3b82f6; box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4); }
.class-card.ranger:hover { border-color: #22c55e; box-shadow: 0 15px 40px rgba(34, 197, 94, 0.4); }
.class-card.rogue:hover { border-color: #6366f1; box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4); }
.class-card.paladin:hover { border-color: #f59e0b; box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4); }
.class-card.bard:hover { border-color: #ec4899; box-shadow: 0 15px 40px rgba(236, 72, 153, 0.4); }
.class-card.cleric:hover { border-color: #10b981; box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4); }
.class-card.monk:hover { border-color: #8b5cf6; box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4); }
.class-card.barbarian:hover { border-color: #dc2626; box-shadow: 0 15px 40px rgba(220, 38, 38, 0.4); }
.class-card.pirate:hover { border-color: #06b6d4; box-shadow: 0 15px 40px rgba(6, 182, 212, 0.4); }

.class-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.class-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 5%;
    transition: transform 0.4s ease;
    filter: brightness(0.8) contrast(1.1);
}

.class-card:hover .class-image {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.2);
}

.class-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(10, 15, 30, 0.3) 40%,
        rgba(10, 15, 30, 0.9) 100%
    );
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.premium-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.premium-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.7rem;
    vertical-align: middle;
    margin-left: 0.5rem;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.class-content {
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.class-name {
    font-size: 1.25rem;
    font-family: 'Cinzel', serif;
    color: #ffd700;
    margin: 1rem 0 0.5rem 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.class-role {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.class-description {
    color: #94a3b8;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    min-height: 2.5rem;
}

.class-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    margin-top: auto;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    color: #64748b;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.stat-value {
    font-family: 'Cinzel', serif;
    color: #4a9eff;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: right;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.class-features {
    margin-top: 0;
    display: none;
}

.class-features h3 {
    font-size: 1.1rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.class-features ul {
    list-style: none;
    padding: 0;
}

.class-features li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #d0d0d0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.class-features li .feature-icon {
    color: #4a9eff;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.view-guide-btn {
    display: none;
}

/* Class-specific stat value colors */
.class-card.warrior .stat-value { color: #fca5a5; }
.class-card.wizard .stat-value { color: #93c5fd; }
.class-card.ranger .stat-value { color: #86efac; }
.class-card.rogue .stat-value { color: #a5b4fc; }
.class-card.paladin .stat-value { color: #fcd34d; }
.class-card.bard .stat-value { color: #f9a8d4; }
.class-card.cleric .stat-value { color: #6ee7b7; }
.class-card.monk .stat-value { color: #c4b5fd; }
.class-card.barbarian .stat-value { color: #fca5a5; }
.class-card.pirate .stat-value { color: #22d3ee; }

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1), rgba(123, 44, 191, 0.1));
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.cta-section h2 {
    font-size: 2rem;
    font-family: 'Cinzel', serif;
    color: #ffd700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: #d0d0d0;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #4a9eff, #7b2cbf);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6bb3ff, #9d4edd);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 158, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .classes-index-page,
    .class-detail-page {
        padding: 1rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .classes-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        flex-direction: column;
        width: 100%;
    }

    .filter-btn {
        width: 100%;
    }
    
    .class-section {
        padding: 1rem;
    }
    
    .class-section h2 {
        font-size: 1.5rem;
    }
    
    .class-section h3 {
        font-size: 1.2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .related-classes {
        grid-template-columns: 1fr;
    }
}

/* Individual Class Detail Page Styles */
.class-detail-hero {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.9), rgba(40, 20, 60, 0.7));
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.class-detail-hero-image {
    position: relative;
    overflow: hidden;
    width: 250px;
}

.class-detail-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.class-detail-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2rem 2rem 1.5rem;
    background: linear-gradient(to right, rgba(20, 20, 40, 0.3), rgba(20, 20, 40, 0.95));
}

.class-detail-hero-content h1 {
    font-size: 2.8rem;
    font-family: 'Cinzel', serif;
    color: #ffd700;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.class-detail-hero-content .class-icon {
    font-size: 2.5rem;
    color: #4a9eff;
    flex-shrink: 0;
}

.class-detail-hero-content .role {
    font-size: 1.2rem;
    color: #4a9eff;
    font-weight: bold;
    margin-bottom: 1.25rem;
}

.class-detail-hero-content .quick-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.class-detail-hero-content .quick-stat {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(74, 158, 255, 0.3);
}

.class-detail-hero-content .quick-stat-label {
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
    letter-spacing: 0.5px;
}

.class-detail-hero-content .quick-stat-value {
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Tablet responsive for hero */
@media (max-width: 1024px) {
    .class-detail-hero {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .class-detail-hero-image {
        width: 100%;
        height: 300px;
    }
    
    .class-detail-hero-content {
        padding: 2rem;
    }
    
    .class-detail-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .class-detail-hero-content .role {
        font-size: 1.2rem;
    }
    
    .class-detail-hero-content .quick-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

/* Mobile responsive for hero */
@media (max-width: 640px) {
    .class-detail-hero {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .class-detail-hero-image {
        width: 100%;
        height: 350px;
        order: -1;
    }
    
    .class-detail-hero-content {
        padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    }
    
    .class-detail-hero-content h1 {
        font-size: 2rem;
    }
    
    .class-detail-hero-content .role {
        font-size: 1rem;
    }
    
    .class-detail-hero-content .quick-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

.class-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.8), rgba(40, 20, 60, 0.6));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.class-section h2 {
    font-size: 2rem;
    font-family: 'Cinzel', serif;
    color: #ffd700;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 0.5rem;
}

.class-section h3 {
    font-size: 1.5rem;
    color: #4a9eff;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.class-section p {
    line-height: 1.8;
    color: #d0d0d0;
    margin-bottom: 1rem;
}

.class-section ul {
    color: #d0d0d0;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.class-section ol {
    color: #d0d0d0;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-box {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(74, 158, 255, 0.3);
}

.stat-box h4 {
    color: #4a9eff;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.stat-box p {
    color: #ffd700;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
}

.ability-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #4a9eff;
}

.ability-card h4 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.ability-card .ability-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.ability-meta span {
    color: #888;
}

.ability-meta strong {
    color: #4a9eff;
}

.ability-card p {
    color: #d0d0d0;
    line-height: 1.6;
    margin: 0;
}

.ability-card ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.related-classes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.related-class-card {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-class-card:hover {
    border-color: #4a9eff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 158, 255, 0.3);
}

.related-class-card h4 {
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.related-class-card p {
    color: #d0d0d0;
    font-size: 0.9rem;
    margin: 0;
}
