/* Global Styles */
:root {
    /* Main Theme Colors */
    --bg-light-blue: #e6f0ff;
    --primary-blue: #4a90e2;
    --secondary-blue: #357abd;
    --glass-white: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-dark: #333333;
    --text-light: #666666;
    --mc-green: #22c55e;
    --mc-orange: #f97316;
    --mc-purple: #8b5cf6;
    --mc-blue: #3b82f6;
    --mc-red: #ef4444;
    
    /* Original Colors */
    --original-bg: #3c67a3;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--original-bg);
    color: white;
    min-height: 100vh;
}

/* Minecraft Font Override */
.font-minecraft {
    font-family: 'Minecraft', 'Inter', sans-serif;
}

/* Text Color and Size Enhancements */
.text-white {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.text-gray-300 {
    color: #d1d5db;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.md\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced Text Display */
.text-display-enhanced {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.text-display-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    z-index: -1;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.text-display-enhanced:hover::before {
    opacity: 1;
}

/* Glow effect for text */
.text-white {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.text-xl,
.md\\:text-2xl {
    position: relative;
}

.text-xl::after,
.md\\:text-2xl::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #22c55e, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.text-display-enhanced:hover::after {
    opacity: 1;
}

/* Glass Effects */
.glass-dark {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation */
.nav-link {
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: #22c55e;
}

/* Wiki Specific Styles */
.wiki-sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    bottom: 0;
    width: 280px;
    overflow-y: auto;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    z-index: 10;
}

.wiki-content {
    margin-left: 280px;
    padding: 24px;
    min-height: calc(100vh - 80px);
}

.wiki-section {
    margin-bottom: 48px;
    padding: 24px 0;
}

.wiki-sidebar-link {
    display: block;
    padding: 12px 24px;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.wiki-sidebar-link:hover {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border-left-color: #22c55e;
}

.wiki-sidebar-link.active {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border-left-color: #22c55e;
    font-weight: bold;
}

/* Gallery Styles */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-info {
    padding: 12px;
    background: rgba(31, 41, 55, 0.9);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 80px;
    height: 80px;
    border: 8px solid rgba(34, 197, 94, 0.2);
    border-top: 8px solid #22c55e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .wiki-sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 16px 0;
    }
    
    .wiki-content {
        margin-left: 0;
        padding: 16px;
    }
    
    .wiki-sidebar-nav {
        max-height: 300px;
        overflow-y: auto;
    }
}

/* Breadcrumb Navigation */
.breadcrumb {
    padding: 10px 20px;
    background: rgba(31, 41, 55, 0.8);
    border-radius: 4px;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #22c55e;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 10px;
    color: #9ca3af;
}

/* Search Bar */
.search-container {
    padding: 10px 20px 20px;
    background: rgba(31, 41, 55, 0.8);
    border-radius: 4px;
    margin-bottom: 20px;
}

.search-box {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #4b5563;
    background: #1f2937;
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar { 
    width: 10px; 
}
::-webkit-scrollbar-track { 
    background: #1f2937; 
}
::-webkit-scrollbar-thumb { 
    background: #22c55e; 
    border-radius: 5px; 
}
::-webkit-scrollbar-thumb:hover { 
    background: #16a34a; 
}