/* Global Styles */
:root {
    --bg-color: #0d1117;
    --card-bg: #161b22;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --accent-color: #238636;
    /* GitHub Green-ish */
    --accent-hover: #2ea043;
    --danger-color: #da3633;
    --chaos-color: #a371f7;
    /* For Chaos dimension */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--card-bg);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

.warning-text {
    color: var(--danger-color);
    font-weight: bold;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--card-bg);
    padding: 1rem 0;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

nav a:hover,
nav a.active {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 0;
    background: radial-gradient(circle at center, rgba(35, 134, 54, 0.1) 0%, transparent 70%);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Main Content */
.content-section {
    padding: 2rem 0;
    min-height: 50vh;
    /* Minimum height to make sections feel substantial */
}

.card {
    background-color: var(--card-bg);
    border: 1px solid rgba(240, 246, 252, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
}

/* Bosses Grid */
.boss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.boss-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

/* Placeholder for Coming Soon */
.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: repeating-linear-gradient(45deg,
            var(--card-bg),
            var(--card-bg) 10px,
            #1c2128 10px,
            #1c2128 20px);
    border-radius: 12px;
    border: 2px dashed var(--text-secondary);
    color: var(--text-secondary);
}

.coming-soon h3 {
    font-size: 2rem;
    background: #1c2128;
    padding: 1rem 2rem;
    border-radius: 8px;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    background-color: var(--card-bg);
    margin-top: 4rem;
    border-top: 1px solid rgba(240, 246, 252, 0.1);
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 10px;
    font-weight: 600;
}

.social-links a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: fadeIn 0.8s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }
}

/* Recipe Grid */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.recipe-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.recipe-item:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}

.recipe-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.recipe-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    word-wrap: break-word;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}

.lightbox-close:hover {
    color: var(--danger-color);
}