/*
Theme Name: Agentic Mia
Theme URI: https://agenticmia.com
Author: Agentic Mia
Author URI: https://agenticmia.com
Description: Custom theme for Agentic Mia - Orchestrering af det Open Source økosystem.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agentic-mia
Tags: custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
    --primary-cyan: #06b6d4;
    --primary-purple: #a855f7;
    --bg-dark: #080c14;
    --bg-card: #111827;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --grad-linear: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    touch-action: manipulation;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ======================================== */
/* WORDPRESS RESETS & COMPATIBILITY         */
/* ======================================== */
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }
.aligncenter { display: block; margin: 0 auto; }
.wp-block-image img { max-width: 100%; height: auto; }
img { max-width: 100%; height: auto; }

/* ======================================== */
/* NAVIGATION HEADER                        */
/* ======================================== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo svg {
    height: 40px;
    width: auto;
}

.nav-flow-line {
    stroke-dasharray: 40 160;
    animation: flow-nav 3s linear infinite;
}

.nav-flow-line-secondary {
    stroke-dasharray: 40 160;
    animation: flow-nav 3s linear infinite;
    opacity: 0.6;
    animation-delay: -1.5s;
}

@keyframes flow-nav {
    from { stroke-dashoffset: 200; }
    to { stroke-dashoffset: 0; }
}

.nav-logo span {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
    font-family: 'Outfit', sans-serif;
}

.nav-links a:hover {
    color: var(--text-light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-linear);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    background: var(--grad-linear);
    color: white !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    display: inline-block;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.nav-cta::after { display: none !important; }

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 72px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: rgba(8, 12, 20, 0.97);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 3rem;
        gap: 2rem;
        transition: right 0.4s ease;
        backdrop-filter: blur(20px);
    }
    .nav-links.open { right: 0; }
    .nav-links a { font-size: 1.2rem; }
    .nav-hamburger { display: flex; }
    .nav-cta { margin-top: 1rem; }
}

/* ======================================== */
/* MAIN CONTENT AREA                        */
/* ======================================== */
.site-main {
    padding-top: 72px; /* push below fixed nav */
}

/* ======================================== */
/* HERO SECTION                             */
/* ======================================== */
.hero-section {
    padding: 2rem 1rem 1rem;
    text-align: center;
}

.hero-logo svg {
    max-width: 220px;
    height: auto;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    background: var(--grad-linear);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* ======================================== */
/* ORCHESTRATOR VISUAL                      */
/* ======================================== */
.orchestrator-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 420px;
    margin: 0 auto;
    background: #0a0f1d;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 1rem;
}

.mia-center {
    position: relative;
    width: 100px;
    height: 100px;
    background: var(--grad-linear);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 0.8rem;
    color: white;
    z-index: 10;
    box-shadow: 0 0 60px rgba(6, 182, 212, 0.5);
    text-align: center;
    border: 4px solid rgba(255,255,255,0.3);
}

.node-wrapper {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 20;
}

.node {
    background: var(--bg-card);
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    border: 1px solid #334155;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    text-align: center;
}

.action-bubble {
    background: rgba(6, 182, 212, 0.2);
    color: var(--primary-cyan);
    font-size: 0.55rem;
    padding: 2px 5px;
    border-radius: 5px;
    border: 1px solid var(--primary-cyan);
    max-width: 100px;
    text-align: center;
}

.pos-1 { top: 2%; left: 50%; transform: translate(-50%, 0); }
.pos-2 { top: 18%; right: 3%; transform: translate(0, 0); }
.pos-3 { bottom: 2%; left: 50%; transform: translate(-50%, 0); }
.pos-4 { top: 18%; left: 3%; transform: translate(0, 0); }
.pos-5 { bottom: 22%; right: 3%; transform: translate(0, 0); }
.pos-6 { bottom: 22%; left: 3%; transform: translate(0, 0); }

.connection-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 5;
    display: none;
}

.flow-path {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
}

.inbound {
    stroke: url(#grad-flow);
    stroke-dasharray: 10, 10;
    animation: flow-in 2s linear infinite;
}

.outbound {
    stroke: #fff;
    stroke-dasharray: 5, 15;
    animation: flow-out 2s linear infinite;
    opacity: 0.4;
}

@keyframes flow-in { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes flow-out { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }

/* ======================================== */
/* FREEDOM / COMPARISON SECTION             */
/* ======================================== */
.freedom-section {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.freedom-header {
    text-align: center;
    margin-bottom: 4rem;
}

.freedom-header h2 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
}

.freedom-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: stretch;
}

.comparison-box {
    padding: 1.5rem;
    border-radius: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.closed-box {
    background: #111827;
    border: 2px solid #334155;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

.open-box {
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 2px solid var(--primary-cyan);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
}

.box-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.closed-box .box-title { color: #94a3b8; }
.open-box .box-title { color: white; }

.feature-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.95rem;
}

.tag {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tag-bad { background: #ef444422; color: #ef4444; border: 1px solid #ef4444; }
.tag-good { background: #10b98122; color: #10b981; border: 1px solid #10b981; }

/* ======================================== */
/* SYSTEMS / LOGO SLIDER                    */
/* ======================================== */
.systems-section {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
}

.systems-section h2 {
    font-size: 1.6rem;
    color: white;
    margin-bottom: 1rem;
}

.systems-section > p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.logo-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.logo-track {
    display: flex;
    width: calc(200px * 24);
    animation: scroll 40s linear infinite;
    gap: 40px;
    align-items: center;
}

.logo-track:hover {
    animation-play-state: paused;
}

.logo-item {
    flex: 0 0 auto;
    width: 120px;
    height: 60px;
    background: var(--bg-card);
    border: 1px solid #334155;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    transition: all 0.3s ease;
    filter: grayscale(1) brightness(1.2);
}

.logo-item:hover {
    filter: grayscale(0) brightness(1);
    border-color: var(--primary-cyan);
    transform: scale(1.05);
    background: #1e293b;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 12)); }
}

/* ======================================== */
/* CTA FINAL                                */
/* ======================================== */
.cta-final {
    margin: 3rem 1rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--grad-linear);
    border-radius: 20px;
    color: #0f172a;
    max-width: 1200px;
}

.cta-final h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.cta-final p {
    color: #0f172a;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: #0f172a;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
    display: inline-block;
    font-family: 'Outfit', sans-serif;
}

.cta-button:hover { transform: scale(1.05); }

/* ======================================== */
/* ENHANCED FOOTER                          */
/* ======================================== */
.site-footer {
    background: #0a0f1d;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 3rem 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand svg {
    height: 45px;
    width: auto;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 280px;
    margin: 0;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--primary-cyan);
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-socials a:hover {
    background: var(--grad-linear);
    border-color: transparent;
    transform: translateY(-2px);
}

.footer-socials svg {
    width: 18px;
    height: 18px;
    fill: var(--text-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

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

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--text-light);
}

/* ======================================== */
/* WORDPRESS DEFAULT PAGE CONTENT STYLES    */
/* ======================================== */
.entry-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--text-light);
    font-weight: 700;
}

.entry-content p {
    color: var(--text-muted);
    line-height: 1.7;
}

.entry-content a {
    color: var(--primary-cyan);
    text-decoration: none;
}

.entry-content a:hover {
    text-decoration: underline;
}

@media (min-width: 600px) {
    .hero-title { font-size: 2.8rem; }

    .orchestrator-container { height: 500px; }
    .mia-center { width: 120px; height: 120px; font-size: 0.95rem; }
    .node { font-size: 0.7rem; padding: 7px 12px; }
    .connection-svg { display: block; }
    .pos-2 { right: 5%; }
    .pos-4 { left: 5%; }
    .pos-5 { right: 5%; }
    .pos-6 { left: 5%; }
}

@media (min-width: 768px) {
    .nav-inner { padding: 0 2rem; }

    .hero-section { padding: 4rem 2rem 2rem; }
    .hero-logo svg { max-width: 300px; }

    .orchestrator-container { height: 550px; }
    .mia-center { width: 140px; height: 140px; font-size: 1.1rem; }
    .node { font-size: 0.8rem; padding: 8px 14px; }
    .action-bubble { font-size: 0.65rem; max-width: 120px; }

    .freedom-section { padding: 6rem 2rem; }
    .freedom-header h2 { font-size: 2.8rem; }
    .comparison-container { grid-template-columns: 1fr 1fr; }
    .comparison-box { padding: 3rem; }
    .box-title { font-size: 1.8rem; }
    .feature-item { font-size: 1.1rem; }

    .systems-section { padding: 6rem 2rem; }
    .systems-section h2 { font-size: 2.5rem; }
    .logo-track { width: calc(250px * 24); }
    .logo-item { width: 160px; height: 80px; }

    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-250px * 12)); }
    }

    .cta-final {
        margin: 6rem auto;
        padding: 4rem;
        border-radius: 30px;
    }
    .cta-final h2 { font-size: 2.5rem; }
    .cta-final p { font-size: 1.2rem; }
    .cta-button { padding: 1.2rem 3rem; font-size: 1.2rem; }

    .site-footer { padding: 5rem 2rem 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .entry-content { padding: 2rem; }
}

@media (min-width: 1024px) {
    .hero-title { font-size: 3.5rem; }

    .orchestrator-container {
        height: 600px;
        border-radius: 30px;
    }
    .mia-center { width: 180px; height: 180px; font-size: 1.4rem; }
    .node { font-size: 0.9rem; padding: 10px 18px; }
    .action-bubble { font-size: 0.7rem; max-width: 140px; }
    .pos-1 { top: 10%; left: 50%; transform: translate(-50%, -50%); }
    .pos-2 { top: 25%; right: 10%; transform: translate(0, -50%); }
    .pos-3 { bottom: 10%; left: 50%; transform: translate(-50%, 50%); }
    .pos-4 { top: 25%; left: 10%; transform: translate(0, -50%); }
    .pos-5 { top: 65%; right: 15%; bottom: auto; transform: translate(0, -50%); }
    .pos-6 { top: 65%; left: 15%; bottom: auto; transform: translate(0, -50%); }

    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .footer-bottom {
        flex-direction: row;
        text-align: left;
    }
}
