@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@300;500;700&family=Uncial+Antiqua&display=swap');

:root {
    /* Aesthetic & Inclusive Palette */
    --bg-deep: #1a1625; /* Warmes, tiefes Lila-Schwarz */
    --text-main: #ffffff;
    --text-soft: #e2d9f3;
    
    /* Identity Colors (Softened) */
    --bi-pink: #d946ef;
    --bi-purple: #a855f7;
    --bi-blue: #3b82f6;
    
    --nb-yellow: #facc15;
    --nb-white: #ffffff;
    --nb-purple: #9333ea;
    
    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--bi-pink), var(--bi-purple), var(--bi-blue));
    --gradient-nb: linear-gradient(135deg, var(--nb-yellow), var(--nb-purple));
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

body {
    background-color: var(--bg-deep);
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(217, 70, 239, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(250, 204, 21, 0.15) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

header {
    background: rgba(26, 22, 37, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

/* New Logo Styles */
.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    filter: drop-shadow(0 0 5px rgba(217, 70, 239, 0.3));
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-icon {
    transform: rotate(5deg) scale(1.05);
}

.brand-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    line-height: 1;
}

.brand-tld {
    font-weight: 300;
    color: var(--text-soft);
    -webkit-text-fill-color: var(--text-soft);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.8;
}

nav a:hover, nav a.active {
    color: var(--bi-pink);
    opacity: 1;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--bi-pink);
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

/* Container & Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 20px;
}

.bio-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: var(--glass-shadow);
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: white;
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* RESTORED STYLES */

.hero-section {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease;
}

.hero-title {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 4rem;
    margin: 0;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(217, 70, 239, 0.3));
}

.hero-quote {
    font-size: 1.2rem;
    color: var(--text-soft);
    max-width: 600px;
    margin: 1rem auto;
    font-style: italic;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--bi-pink);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 1.5rem;
}

.meta-separator {
    color: rgba(255, 255, 255, 0.2);
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Ensure container is wide enough on desktop */
.container {
    max-width: 1400px; /* Increased from 900px to allow 3 columns breathing room */
    margin: 0 auto;
    padding: 1rem 20px;
}

.grid-col {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease;
}

.grid-col:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.col-blog h2, .col-discord h2 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.blog-preview {
    margin-bottom: 2rem;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--bi-pink);
    font-family: 'Space Grotesk', sans-serif;
}

.blog-preview h3 {
    margin: 0.5rem 0;
    font-size: 1.3rem;
}

.blog-preview h3 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-preview h3 a:hover {
    color: var(--bi-pink);
}

.blog-excerpt {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tag.tech {
    color: var(--bi-blue);
    border-color: rgba(59, 130, 246, 0.3);
}

.filter-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 1px solid var(--bi-pink);
    color: white;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--bi-pink);
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.4);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-soft);
    padding: 0.8rem 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* Footer */
.cyber-footer {
    position: relative;
    background: rgba(26, 22, 37, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-flex {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--bi-pink);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

.lumeria-title {
    font-family: 'Uncial Antiqua', cursive;
    letter-spacing: 2px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.4));
}

/* Mini Gallery in Home Grid */
.mini-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.mini-img-link {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    aspect-ratio: 1; /* Make them square tiles */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-img-link:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--bi-pink);
    box-shadow: 0 8px 25px rgba(217, 70, 239, 0.3);
}

.mini-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mini-img-link:hover .mini-img {
    transform: scale(1.1);
}

/* Placeholder specific styling */
.mini-img.placeholder {
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Gallery Page Styling */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.gallery-grid {
    column-count: 3;
    column-gap: 2rem;
}

@media (max-width: 1024px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.3);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.placeholder-img {
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem 1.5rem 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

.overlay h3 {
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(217, 70, 239, 0.2);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--bi-pink);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        max-width: 100%;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .meta-separator {
        display: none;
    }
    
    .footer-flex {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}
