/*
 Theme Name:   AlbPixel Child
 Theme URI:    https://albpixel.de
 Description:  GeneratePress Child Theme - Depth Flow Design
 Author:       AlbPixel
 Author URI:   https://albpixel.de
 Template:     generatepress
 Version:      1.0.0
*/

/* ===== CSS Variables ===== */
:root {
    --bg: #060a10;
    --bg-light: #0a1018;
    --bg-card: #0c1219;
    --navy: #0a192f;
    --navy-light: #112240;
    --blue: #1e40af;
    --blue-light: #3b82f6;
    --teal: #0891b2;
    --teal-light: #06b6d4;
    --cyan: #00d9ff;
    --cyan-dim: rgba(0, 217, 255, 0.12);
    --cyan-glow: rgba(0, 217, 255, 0.4);
    --gradient: linear-gradient(135deg, var(--blue), var(--teal), var(--cyan));
    --text: #e2e8f0;
    --text-dim: #64748b;
    --border: #1e3a5f;
}

/* ===== Global Styles ===== */
body {
    font-family: 'Oxanium', sans-serif;
    background: var(--bg) !important;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Animated Mesh Background ===== */
.mesh-bg {
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 15% 20%, rgba(0, 217, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 60%, rgba(37, 99, 235, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(8, 145, 178, 0.05) 0%, transparent 40%);
    animation: meshMove 25s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes meshMove {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-15px, 15px); }
    66% { transform: translate(15px, -10px); }
}

/* ===== Header ===== */
.site-header {
    padding: 1.5rem 2rem !important;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
    background: rgba(6, 10, 16, 0.7) !important;
}

.inside-header,
.albpixel-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 !important;
}

.site-header .inside-header {
    padding: 0 !important;
}

/* ===== Logo ===== */
.site-logo,
.site-title {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.site-title a {
    color: var(--text) !important;
    text-decoration: none;
}

.logo-hex {
    width: 40px;
    height: 45px;
    position: relative;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--gradient);
    box-shadow: 0 0 25px var(--cyan-glow);
    flex-shrink: 0;
}

.logo-text {
    letter-spacing: 0.02em;
    display: flex;
    align-items: baseline;
}

.logo-text .pixel {
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Navigation ===== */
.main-navigation,
.primary-menu,
.menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a,
.primary-menu a,
.menu a {
    color: var(--text-dim) !important;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s;
}

.main-navigation a:hover,
.primary-menu a:hover,
.menu a:hover {
    color: var(--cyan) !important;
    text-shadow: 0 0 10px var(--cyan-glow);
}

.nav-login {
    background: var(--cyan-dim) !important;
    border: 1px solid var(--cyan) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 4px !important;
    color: var(--cyan) !important;
    margin-left: 0.5rem;
}

.nav-login:hover {
    background: var(--cyan) !important;
    color: var(--bg) !important;
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 5rem 2rem 6rem;
    text-align: center;
    max-width: 950px;
    margin: 0 auto;
}

.hero-visual {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    position: relative;
    height: 130px;
}

.hero-hex {
    position: absolute;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hero-hex.h1 {
    width: 70px;
    height: 79px;
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--blue) 50%, var(--blue-light) 100%);
    left: calc(50% - 105px);
    top: 30px;
    opacity: 0.75;
    box-shadow: 0 0 25px rgba(30, 64, 175, 0.5);
}

.hero-hex.h2 {
    width: 90px;
    height: 102px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 50%, var(--cyan) 100%);
    left: calc(50% - 45px);
    top: 5px;
    z-index: 2;
    box-shadow: 0 0 40px var(--cyan-glow);
}

.hero-hex.h3 {
    width: 70px;
    height: 79px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 50%, var(--cyan) 100%);
    left: calc(50% + 35px);
    top: 30px;
    opacity: 0.75;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: var(--text);
}

.hero-section h1 .gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section > p {
    font-size: 1.125rem;
    color: var(--text-dim);
    max-width: 520px;
    margin: 0 auto 2.5rem;
}

/* ===== Buttons ===== */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 4px;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient);
    color: var(--bg) !important;
    box-shadow: 0 4px 20px var(--cyan-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--cyan-glow);
}

.btn-outline {
    background: transparent;
    color: var(--cyan) !important;
    border: 1px solid var(--cyan);
}

.btn-outline:hover {
    background: var(--cyan-dim);
    box-shadow: 0 0 20px var(--cyan-dim);
}

/* ===== Categories Section ===== */
.categories-section {
    padding: 5rem 2rem;
    border-top: 1px solid var(--border);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    display: block;
}

.section-header h2 {
    font-size: 2rem;
    letter-spacing: 0.05em;
    color: var(--text);
}

/* ===== Hex Grid ===== */
.hex-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hex-card {
    width: 170px;
    height: 190px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.hex-card:hover {
    transform: translateY(-8px);
}

.hex-card-glow {
    position: absolute;
    inset: -2px;
    background: var(--gradient);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0;
    transition: opacity 0.3s;
    filter: blur(10px);
}

.hex-card:hover .hex-card-glow {
    opacity: 0.5;
}

.hex-card-border {
    position: absolute;
    inset: 0;
    background: var(--gradient);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.hex-card:hover .hex-card-border {
    opacity: 0.9;
}

.hex-card-inner {
    position: absolute;
    inset: 2px;
    background: var(--bg-card);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    transition: background 0.3s;
}

.hex-card:hover .hex-card-inner {
    background: var(--navy);
}

.hex-card .number {
    font-family: 'Fira Code', monospace;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.hex-card .title {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
}

.hex-card .desc {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 0.25rem;
}

/* ===== Featured Section ===== */
.featured-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: visible;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 16px 16px 0 0;
}

.featured-content .tag {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--cyan);
    margin-bottom: 0.75rem;
    display: block;
}

.featured-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
    color: var(--text);
}

.featured-content p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.featured-link {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.featured-visual {
    display: flex;
    gap: 0.5rem;
    position: relative;
    overflow: visible;
}

.featured-hex {
    width: 55px;
    height: 62px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    position: relative;
    background: var(--gradient);
}

/* ===== Footer ===== */
.site-footer,
.site-info {
    padding: 3rem 2rem !important;
    text-align: center;
    border-top: 1px solid var(--border);
    backdrop-filter: blur(8px);
    background: rgba(6, 10, 16, 0.9) !important;
}

.inside-site-info {
    background: transparent !important;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-hex-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 1.5rem;
}

.footer-hex {
    width: 16px;
    height: 18px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.site-footer p,
.site-info {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.site-footer span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Login Modal ===== */
.login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.login-overlay.active {
    display: flex;
    opacity: 1;
}

.login-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.login-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 16px 16px 0 0;
}

.login-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
}

.login-close:hover {
    color: var(--cyan);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-hex {
    width: 50px;
    height: 56px;
    background: var(--gradient);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    margin: 0 auto 1rem;
    box-shadow: 0 0 25px var(--cyan-glow);
}

.login-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.login-header p {
    font-size: 0.875rem;
    color: var(--text-dim);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    color: var(--text-dim);
    font-family: 'Fira Code', monospace;
}

.form-group input {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.875rem 1rem;
    color: var(--text);
    font-family: 'Oxanium', sans-serif;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-dim);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.login-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    cursor: pointer;
}

.login-options input[type="checkbox"] {
    accent-color: var(--cyan);
}

.login-options a {
    color: var(--cyan);
    text-decoration: none;
}

.login-btn {
    background: var(--gradient);
    color: var(--bg);
    border: none;
    padding: 1rem;
    border-radius: 6px;
    font-family: 'Oxanium', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    margin-top: 0.5rem;
}

.login-btn:hover {
    box-shadow: 0 4px 20px var(--cyan-glow);
    transform: translateY(-2px);
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-dim);
}

.login-footer a {
    color: var(--cyan);
    text-decoration: none;
}

/* ===== WordPress Content ===== */
.site-content,
.content-area {
    background: transparent !important;
}

.entry-content,
.page-content {
    color: var(--text);
}

.entry-title {
    color: var(--text);
}

a {
    color: var(--cyan);
    text-decoration: none;
}

a:hover {
    color: var(--cyan);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .featured-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .featured-visual {
        justify-content: center;
    }
    
    .hex-grid {
        gap: 1rem;
    }
    
    .hex-card {
        width: 140px;
        height: 160px;
    }
}
