/**
 * World Explorer Styles
 * Hierarchical navigation for El'anthar lore
 */

#world-explorer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: 600px;
}

/* --- Breadcrumbs --- */
.explorer-breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    font-family: var(--font-heading);
    color: var(--color-ethereal);
    font-size: var(--text-sm);
    flex-wrap: wrap;
}

.breadcrumb-item {
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.breadcrumb-item:hover {
    color: var(--color-gold);
}

.breadcrumb-item.active {
    color: var(--color-gold);
    cursor: default;
    pointer-events: none;
}

.breadcrumb-separator {
    color: var(--color-ethereal-dark);
}

/* --- Navigation Header --- */
.explorer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(184, 160, 96, 0.2);
    padding-bottom: var(--space-md);
}

.back-button {
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-button:hover {
    background: rgba(184, 160, 96, 0.1);
    box-shadow: 0 0 15px rgba(184, 160, 96, 0.2);
}

.back-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--color-ethereal-dark);
    color: var(--color-ethereal-dark);
}

/* --- Grid Layout --- */
.explorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    width: 100%;
}

/* --- Cards --- */
.explorer-card {
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(184, 160, 96, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.explorer-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(184, 160, 96, 0.1);
}

.explorer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(184, 160, 96, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.explorer-card:hover::before {
    opacity: 1;
}

.explorer-card-icon {
    color: var(--color-gold);
    margin-bottom: var(--space-md);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.explorer-card-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.explorer-card h3 {
    font-family: var(--font-heading);
    color: var(--color-moonlight);
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.explorer-card p {
    color: var(--color-ethereal);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.category-indicator {
    margin-top: auto;
    /* Push to bottom */
    padding-top: var(--space-md);
    font-size: var(--text-xs);
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- Leaf Node View --- */
.explorer-leaf-view {
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.leaf-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    border-bottom: 2px solid rgba(184, 160, 96, 0.3);
    padding-bottom: var(--space-lg);
}

.leaf-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 20px rgba(184, 160, 96, 0.3);
}

.leaf-content {
    font-family: var(--font-body);
    font-size: var(--text-md);
    color: var(--color-ethereal);
    line-height: 1.8;
}

.leaf-content p {
    margin-bottom: var(--space-md);
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeIn 0.5s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}