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

:root {
    --bg-color: #0f0e17;
    --text-main: #fffffe;
    --text-soft: #a7a9be;
    --bi-pink: #d946ef;
    --bi-purple: #8b5cf6;
    --bi-blue: #3b82f6;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --card-radius: 12px;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Uncial Antiqua', cursive;
    margin-top: 0;
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
    background: rgba(15, 14, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 2rem;
}

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

/* Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-text {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 1.5rem;
    background: linear-gradient(90deg, var(--bi-pink), var(--bi-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.brand-tld {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    color: var(--text-soft);
    -webkit-text-fill-color: var(--text-soft);
}

/* Nav Links */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-soft);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

nav a:hover, nav a.active {
    color: white;
}

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

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

/* Dropdown Styles */
.dropdown-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 14, 23, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: var(--card-radius);
    padding: 0.5rem 0;
    min-width: 200px;
    display: none;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1001;
}

.dropdown-item:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-soft);
    white-space: nowrap;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--bi-pink);
    padding-left: 1.8rem;
}

.dropdown-menu a::after {
    display: none;
}

@media (max-width: 768px) {
    nav ul {
        display: none; /* Mobile menu logic would go here */
    }
}

/* =========================================
   MAIN LAYOUT
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr 350px; /* Main content + Fixed sidebar */
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-col.col-discord {
        order: 2; /* Sidebar below content on mobile */
    }
}

/* =========================================
   HERO SECTION (Index Page)
   ========================================= */
.hero-section {
    text-align: center;
    padding: 4rem 1rem;
    margin-bottom: 3rem;
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--card-radius);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #a7a9be);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

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

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    color: var(--bi-pink);
    font-size: 0.9rem;
    flex-wrap: wrap;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.meta-separator {
    color: var(--text-soft);
    opacity: 0.5;
}

/* =========================================
   PAGE HEADERS (Blog, Gallery, etc.)
   ========================================= */
.blog-header, .about-header, .gallery-header, .impressum-header, .partners-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--card-radius);
    backdrop-filter: blur(10px);
}

.blog-page-title, .page-title, .partners-page-title {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
}

.blog-subtitle, .partners-subtitle {
    color: var(--text-soft);
    font-size: 1.2rem;
}

/* =========================================
   CARDS (Index & Blog)
   ========================================= */
.blog-card, .horizontal-card, .index-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--card-radius);
    overflow: hidden;
    display: flex;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover, .horizontal-card:hover, .index-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.2);
}

.blog-image-wrapper {
    width: 200px; /* Fixed width for thumbnail */
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.blog-image-wrapper img, .blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover img, .horizontal-card:hover img {
    transform: scale(1.05);
}

.index-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--bi-pink);
    margin-bottom: 0.5rem;
}

.blog-content, .blog-excerpt {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 600px) {
    .blog-card, .horizontal-card, .index-card {
        flex-direction: column;
    }
    .blog-image-wrapper {
        width: 100%;
        height: 200px;
    }
}

/* =========================================
   SIDEBAR (Discord & Partners)
   ========================================= */
.discord-box, .partner-box {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.lumeria-title, .partner-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffd700, #ffec8b); /* Gold */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.discord-box iframe {
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.05);
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

.partner-item:hover {
    transform: translateY(-3px);
}

.partner-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(0,0,0,0.2);
    padding: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

.partner-name {
    font-size: 0.8rem;
    color: var(--text-soft);
    text-align: center;
}

/* =========================================
   BLOG PAGE EXTRAS
   ========================================= */
.blog-search-container {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.blog-search-container:focus-within {
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.2);
    border-color: rgba(217, 70, 239, 0.4);
}

.blog-search-input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    outline: none;
    margin-left: 1rem;
}

.blog-tag, .tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-soft);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.blog-tag:hover, .tag:hover {
    background: var(--bi-pink);
    color: white;
}

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

.tag.tech:hover {
    background: var(--bi-blue);
    color: white;
}

.content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
}

.content h2 {
    font-size: 1.8rem;
    color: white;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content p {
    margin-bottom: 1.5rem;
}

.content code {
    background: rgba(0,0,0,0.3);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    color: var(--bi-pink);
}

.content pre {
    background: rgba(0,0,0,0.5);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bi-pink);
    font-weight: 500;
    margin-top: auto;
}

/* =========================================
   ABOUT PAGE
   ========================================= */
.about-grid-container {
    display: grid;
    gap: 2rem;
}

.about-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--card-radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.profile-card {
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.profile-image-container {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(217, 70, 239, 0.3);
    box-shadow: 0 0 30px rgba(217, 70, 239, 0.2);
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-card-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.about-text {
    color: var(--text-soft);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-text strong {
    color: var(--bi-pink);
    font-weight: 600;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.identity-bar {
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, var(--bi-pink), var(--bi-purple), var(--bi-blue));
    border-radius: 3px;
    margin-top: 2rem;
    opacity: 0.8;
}

/* =========================================
   GALLERY PAGE
   ========================================= */
.gallery-title {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
}

.gallery-subtitle {
    color: var(--text-soft);
    font-size: 1.2rem;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: var(--glass-bg);
    border: var(--glass-border);
    color: var(--text-soft);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--bi-pink);
    color: white;
    transform: translateY(-2px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1; /* Square thumbnails */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.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: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.gallery-item .overlay h3 {
    font-size: 1rem;
    color: white;
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
}

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

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 2001;
    line-height: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
    z-index: 2001;
}

.lightbox-nav:hover {
    background: var(--bi-pink);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* =========================================
   ADMIN DASHBOARD
   ========================================= */
.admin-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.tab-btn {
    background: var(--glass-bg);
    border: var(--glass-border);
    color: var(--text-soft);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
}

.tab-btn:hover, .tab-btn.active {
    background: var(--bi-purple);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 70, 239, 0.3);
}

.admin-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-form-group {
    margin-bottom: 1.5rem;
}

.admin-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.admin-input, .admin-textarea, .admin-select {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.admin-input:focus, .admin-textarea:focus, .admin-select:focus {
    outline: none;
    border-color: var(--bi-purple);
    background: rgba(0, 0, 0, 0.5);
}

.admin-btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--bi-pink), var(--bi-purple));
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.4);
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(255, 94, 98, 0.2);
    border: 1px solid rgba(255, 94, 98, 0.5);
    color: #ff5e62;
}

.btn-danger:hover {
    background: rgba(255, 94, 98, 0.4);
}

.admin-list-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    transition: background 0.3s ease;
}

.admin-list-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

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

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

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

/* =========================================
   PARTNERS PAGE
   ========================================= */
.partners-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.partner-card-large {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.partner-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.partner-card-img-wrapper {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.partner-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.partner-card-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.partner-visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.partner-visit-btn:hover {
    background: var(--bi-pink);
    border-color: var(--bi-pink);
}

.no-partners {
    grid-column: 1/-1;
    text-align: center;
    padding: 3rem;
    color: var(--text-soft);
}

/* =========================================
   FOOTER
   ========================================= */
.cyber-footer {
    background: rgba(15, 14, 23, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: auto;
}

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

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

.footer-nav a {
    color: var(--text-soft);
    font-size: 0.9rem;
}

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

.footer-copy {
    width: 100%;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.8rem;
    margin-top: 1rem;
    opacity: 0.5;
}

@media (max-width: 600px) {
    .footer-flex {
        flex-direction: column;
        text-align: center;
    }
}
