/* Lesson 2-1 Specific Styles: The Nature of Heroes */

/* Hero Theme Colors */
:root {
    --hero-primary: #dc3545;
    --hero-secondary: #c82333;
    --hero-accent: #ffd700;
    --hero-light: #f8d7da;
    --hero-gradient: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Hierarchy Section - Enhanced Visual Design */
.hierarchy-section {
    margin-bottom: 3rem;
}

.hierarchy-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(220, 53, 69, 0.1);
    overflow: hidden;
    margin: 2rem 0;
    position: relative;
}

.hierarchy-connector {
    position: absolute;
    left: 50%;
    top: 120px;
    bottom: 120px;
    width: 3px;
    background: linear-gradient(180deg, #ffd700 0%, #dc3545 50%, #6c757d 100%);
    transform: translateX(-50%);
    z-index: 0;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

#hierarchy-levels {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.hierarchy-level {
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
}

.hierarchy-level::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.hierarchy-level:hover::before {
    left: 100%;
}

.hierarchy-level.gods {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-color: #ffd700;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    color: #856404;
}

.hierarchy-level.heroes {
    background: var(--hero-gradient);
    border-color: var(--hero-primary);
    color: white;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
    margin: 2rem 0;
    transform: scale(1.05);
    position: relative;
}

.hierarchy-level.heroes::after {
    content: '⭐';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.7;
    animation: twinkle 2s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hierarchy-level.mortals {
    background: linear-gradient(135deg, #6c757d 0%, #868e96 100%);
    border-color: #6c757d;
    color: white;
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

.hierarchy-level:hover {
    transform: translateX(15px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.hierarchy-level.heroes:hover {
    transform: translateX(15px) scale(1.08);
}

.hierarchy-level.active {
    transform: translateX(20px) scale(1.03);
    border-color: white;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.hierarchy-level.heroes.active {
    transform: translateX(20px) scale(1.1);
}

.level-icon {
    float: right;
    font-size: 2.5rem;
    opacity: 0.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.level-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.level-description {
    margin-bottom: 0.8rem;
    opacity: 0.9;
    font-size: 1.1rem;
    line-height: 1.5;
}

.level-examples {
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Hero Characteristics Grid */
.characteristics-section {
    margin-bottom: 3rem;
}

.characteristics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.characteristic-card {
    background: white;
    border: 3px solid rgba(220, 53, 69, 0.1);
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.characteristic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--hero-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.characteristic-card:hover::before {
    transform: scaleX(1);
}

.characteristic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(220, 53, 69, 0.2);
    border-color: var(--hero-primary);
}

.characteristic-card.active {
    border-color: var(--hero-primary);
    background: linear-gradient(135deg, #fff0f0 0%, #ffffff 100%);
    box-shadow: 0 12px 35px rgba(220, 53, 69, 0.25);
    transform: translateY(-5px);
}

.characteristic-card.active::before {
    transform: scaleX(1);
}

.characteristic-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.characteristic-card:hover .characteristic-icon {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.characteristic-card h4 {
    color: var(--hero-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.characteristic-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Comparison Grid for God vs Hero Worship */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.comparison-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border-left: 5px solid var(--hero-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.comparison-card.god-worship {
    border-left-color: #ffd700;
    background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
}

.comparison-card.hero-worship {
    border-left-color: var(--hero-primary);
    background: linear-gradient(135deg, #fff0f0 0%, #ffffff 100%);
}

.comparison-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.comparison-card h4 {
    color: var(--hero-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.comparison-card.god-worship h4 {
    color: #856404;
}

.comparison-card ul {
    list-style: none;
    padding: 0;
}

.comparison-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 1.5rem;
}

.comparison-card li:last-child {
    border-bottom: none;
}

.comparison-card li::before {
    content: '•';
    color: var(--hero-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.comparison-card.god-worship li::before {
    content: '⚡';
}

.comparison-card.hero-worship li::before {
    content: '⚔️';
}

/* Interactive Text Elements - Hero Theme */
.key-term {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    color: #856404;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.key-term:hover {
    background: linear-gradient(135deg, #ffeaa7 0%, #ffd93d 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(255, 193, 7, 0.3);
}

.key-figure {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid var(--hero-primary);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    color: #721c24;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.key-figure:hover {
    background: linear-gradient(135deg, #f5c6cb 0%, #f1b0b7 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.3);
}

.key-concept {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #28a745;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    color: #155724;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.key-concept:hover {
    background: linear-gradient(135deg, #c3e6cb 0%, #a8dab5 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
}

.key-place {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #17a2b8;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    color: #0c5460;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.key-place:hover {
    background: linear-gradient(135deg, #bee5eb 0%, #9dd7e5 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(23, 162, 184, 0.3);
}

/* Primary Source Quote - Hero Theme */
.primary-source {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid var(--hero-primary);
    padding: 2rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 12px 12px 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.primary-source::before {
    content: '"';
    font-size: 4rem;
    color: var(--hero-primary);
    position: absolute;
    top: -10px;
    left: 15px;
    opacity: 0.3;
    font-family: serif;
}

.source-citation {
    font-size: 0.9rem;
    color: var(--hero-secondary);
    margin-top: 1.5rem;
    font-weight: 600;
    font-style: normal;
}

/* Highlight Box - New Component */
.highlight-box {
    background: var(--hero-gradient);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '💫';
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    opacity: 0.3;
}

.highlight-box h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.highlight-box p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin: 0;
}

/* Detail Box - Enhanced for Hero Theme */
.detail-box {
    background: linear-gradient(135deg, #fff0f0 0%, #ffffff 100%);
    border: 2px solid rgba(220, 53, 69, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    animation: fadeInUp 0.3s ease;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.08);
}

.detail-box h4 {
    color: var(--hero-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid rgba(220, 53, 69, 0.2);
    padding-bottom: 0.5rem;
}

.detail-box h5 {
    color: var(--hero-secondary);
    margin: 1.5rem 0 0.8rem 0;
    font-size: 1.1rem;
}

.detail-box p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.detail-box ul {
    margin-left: 1.5rem;
    color: #555;
}

.detail-box li {
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

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

/* Sample elements in sidebar */
.sample-term {
    background: #fff3cd;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #856404;
}

.sample-figure {
    background: #f8d7da;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #721c24;
}

.sample-concept {
    background: #d4edda;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #155724;
}

/* Info Panel Content */
#info-content {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 1rem;
}

#info-content h4 {
    color: var(--hero-primary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

#info-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

/* Summary Section */
.summary-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid rgba(220, 53, 69, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3rem 0;
    position: relative;
}

.summary-section::before {
    content: '🏆';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    opacity: 0.3;
}

.summary-section h3 {
    color: var(--hero-primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.summary-section p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    
    .left-sidebar {
        display: flex;
        gap: 3rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
    }
    
    .right-sidebar {
        position: relative;
        top: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .right-sidebar {
        grid-template-columns: 1fr;
    }
    
    .characteristics-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .hierarchy-level {
        padding: 1.5rem;
    }
    
    .level-title {
        font-size: 1.3rem;
    }
    
    .level-icon {
        font-size: 2rem;
    }
    
    .hierarchy-connector {
        display: none;
    }
}
