/* FFX Projects v2.0 — Cyberpunk Design System */

:root {
    color-scheme: dark;
    --v2-bg: #090d14;
    --v2-surface: #111824;
    --v2-surface-raised: #1a2331;
    --v2-orange: #ff791f;
    --v2-cyan: #20d5e8;
    --v2-text: #f4f7fb;
    --v2-muted: #a6b3c5;
    --v2-border: rgba(255, 121, 31, .24);
}

body.ffx-v2 {
    margin: 0;
    background: var(--v2-bg);
    color: var(--v2-text);
    font-family: Inter, sans-serif;
    overflow-x: hidden;
}

.ffx-v2 *,
.ffx-v2 *::before,
.ffx-v2 *::after {
    box-sizing: border-box;
}

.v2-shell {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.v2-header {
    background: rgba(12, 16, 23, .94);
    border: 1px solid var(--v2-border);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(255, 121, 31, .12);
}

.v2-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 16px 24px;
}

.v2-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    font-weight: 800;
}

.v2-brand-accent {
    color: var(--v2-orange);
}

.v2-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.v2-menu a {
    color: var(--v2-text);
    text-decoration: none;
    transition: color .2s ease;
}

.v2-menu a:hover,
.v2-menu a:focus-visible {
    color: var(--v2-orange);
}

.v2-hero {
    position: relative;
    isolation: isolate;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 65%,
            rgba(255, 121, 31, .18), transparent 60%),
        linear-gradient(135deg, #101926, #090d14);
}

.v2-hero-content {
    position: relative;
    z-index: 2;
    padding: 70px 24px;
}

.v2-glow-orange {
    text-shadow: 0 0 25px rgba(255, 121, 31, .5);
}

.v2-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.v2-button:hover {
    transform: translateY(-2px);
}

.v2-button-primary {
    background: var(--v2-orange);
    color: #111;
    box-shadow: 0 0 24px rgba(255, 121, 31, .3);
}

.v2-button-secondary {
    color: var(--v2-cyan);
    border: 1px solid var(--v2-cyan);
}

.v2-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.v2-project-card {
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: 18px;
    padding: 28px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.v2-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(255, 121, 31, .15);
}

.v2-footer {
    background: #080b11;
    border-top: 1px solid var(--v2-border);
}

@media (max-width: 800px) {
    .v2-navigation {
        flex-direction: column;
    }

    .v2-menu {
        justify-content: center;
        gap: 14px;
    }

    .v2-project-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ffx-v2 *,
    .ffx-v2 *::before,
    .ffx-v2 *::after {
        animation: none !important;
        transition: none !important;
    }
}


/* FFX Projects v2 — Cyberpunk Service Status */

.v2-service-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 20px;
    padding: 19px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, #131923, #0b1018);
    border: 1px solid rgba(255, 121, 31, .45);
    box-shadow: 0 0 25px rgba(255, 121, 31, .08);
}

.v2-status-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.v2-status-heading h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
}

.v2-status-light {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #87909e;
    box-shadow: 0 0 12px rgba(135, 144, 158, .4);
}

.v2-status-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.v2-status-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: 11px;
    background: rgba(24, 35, 43, .9);
    border: 1px solid rgba(255, 255, 255, .11);
    font-size: 13px;
}

.v2-status-name {
    font-weight: 700;
    color: #f4f7fb;
}

.v2-status-value {
    font-weight: 600;
    color: #a6b3c5;
}

@media (max-width: 850px) {
    .v2-service-status {
        flex-direction: column;
        align-items: stretch;
    }

    .v2-status-items {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v2-status-chip {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .v2-status-items {
        grid-template-columns: 1fr;
    }
}

/* FFX STATUS CENTER ALIGNMENT */

@media (min-width: 1001px) {
    .v2-service-status {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
    }

    .v2-status-heading {
        grid-column: 1;
    }

    .v2-status-items {
        grid-column: 2;
        justify-content: center;
    }
}

@media (max-width: 1000px) {
    .v2-service-status {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .v2-status-heading {
        justify-content: center;
    }

    .v2-status-items {
        width: 100%;
        justify-content: center;
    }
}


/* FFX LIVE STATUS COLORS */

.v2-status-chip {
    transition: border-color .3s ease, box-shadow .3s ease;
}

.v2-status-chip[data-state="online"] {
    border-color: rgba(74, 222, 128, .38);
}

.v2-status-chip[data-state="online"] .v2-status-value {
    color: #4ade80;
}

.v2-status-chip[data-state="offline"] {
    border-color: rgba(248, 113, 113, .50);
}

.v2-status-chip[data-state="offline"] .v2-status-value {
    color: #f87171;
}

.v2-status-chip[data-state="unknown"] .v2-status-value {
    color: #a6b3c5;
}

.v2-status-light[data-state="online"] {
    background: #4ade80;
    box-shadow: 0 0 14px rgba(74, 222, 128, .65);
}

.v2-status-light[data-state="offline"] {
    background: #f87171;
    box-shadow: 0 0 14px rgba(248, 113, 113, .65);
}

.v2-status-light[data-state="unknown"] {
    background: #87909e;
    box-shadow: none;
}


/* FFX V2 PROJECT CARDS */

.v2-projects {
    margin-top: 24px;
    margin-bottom: 48px;
}

.v2-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.v2-project-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 228px;
    overflow: hidden;
    padding: 25px 26px 23px;
    color: #ffffff;
    text-decoration: none;
    background: #0d1219;
    border: 1px solid rgba(255, 153, 85, .32);
    border-radius: 17px;
    box-shadow: inset 0 0 20px rgba(0,0,0,.35);
    transition: transform .25s ease,
                border-color .25s ease,
                box-shadow .25s ease;
}

.v2-project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("../images/hero-serverroom.webp");
    background-size: cover;
    background-position: center;
    transition: transform .4s ease;
}

.v2-project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(7, 10, 16, .96) 0%,
        rgba(7, 10, 16, .85) 48%,
        rgba(7, 10, 16, .18) 100%
    );
}

.v2-project-card--public::before {
    background-position: left center;
}

.v2-project-card--irc::before {
    background-position: right center;
    filter: hue-rotate(12deg);
}

.v2-project-card--friendly::before {
    background-position: 65% center;
    filter: sepia(.25) saturate(1.4);
}

.v2-project-card--irc::after {
    background: linear-gradient(
        95deg,
        rgba(7, 11, 18, .97),
        rgba(8, 22, 31, .83) 58%,
        rgba(0, 100, 125, .20)
    );
}

.v2-project-card--friendly::after {
    background: linear-gradient(
        95deg,
        rgba(10, 9, 14, .97),
        rgba(25, 13, 15, .84) 58%,
        rgba(152, 57, 10, .18)
    );
}

.v2-project-card-icon {
    width: 38px;
    height: 38px;
    color: #ff8b2e;
    filter: drop-shadow(0 0 8px rgba(255,120,25,.42));
}

.v2-project-card-icon svg {
    width: 100%;
    height: 100%;
}

.v2-project-card-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 30px;
    padding-right: 28px;
}

.v2-project-card-copy strong {
    font-size: 23px;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
}

.v2-project-card-copy > span {
    font-size: 14px;
    line-height: 1.5;
    color: #d0d5dd;
}

.v2-project-card-arrow {
    position: absolute;
    right: 20px;
    bottom: 19px;
    font-size: 28px;
    line-height: 1;
    color: #ff8b2e;
    transition: transform .25s ease;
}

.v2-project-card:hover {
    transform: translateY(-6px);
    border-color: #ff892d;
    box-shadow:
        0 12px 35px rgba(255, 121, 31, .19),
        inset 0 0 22px rgba(255, 121, 31, .07);
}

.v2-project-card:hover::before {
    transform: scale(1.06);
}

.v2-project-card:hover .v2-project-card-arrow {
    transform: translateX(5px);
}

.v2-project-card:focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: 3px;
}

@media (max-width: 950px) {
    .v2-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .v2-project-grid {
        grid-template-columns: 1fr;
    }

    .v2-project-card {
        min-height: 205px;
    }
}

/* FFX CARDS DISTINCT ARTWORK V1 */

.v2-project-card {
    min-height: 202px;
    padding: 22px 24px;
    border-color: rgba(255, 148, 81, .30);
    background: #0a1018;
}

.v2-project-card::before {
    background-size: cover;
    background-position: center;
    filter: none;
}

.v2-project-card--public::before {
    background-image: url("../images/card-public-projects.webp");
}

.v2-project-card--irc::before {
    background-image: url("../images/card-irc-related.webp");
}

.v2-project-card--friendly::before {
    background-image: url("../images/card-friendly-projects.webp");
}

.v2-project-card::after,
.v2-project-card--irc::after,
.v2-project-card--friendly::after {
    background: linear-gradient(
        90deg,
        rgba(7, 10, 16, .96) 0%,
        rgba(7, 10, 16, .82) 38%,
        rgba(7, 10, 16, .18) 100%
    );
}

.v2-project-card-icon {
    width: 35px;
    height: 35px;
}

.v2-project-card-copy {
    gap: 7px;
    padding-top: 22px;
    padding-right: 40px;
}

.v2-project-card-copy strong {
    font-size: 20px;
}

.v2-project-card-copy > span {
    font-size: 13px;
}

.v2-project-card-arrow {
    right: 17px;
    bottom: 16px;
    font-size: 25px;
}

.v2-project-card--irc {
    border-color: rgba(75, 180, 202, .35);
}

.v2-project-card--friendly {
    border-color: rgba(255, 142, 66, .35);
}


/* FFX V2 CINEMATIC FOOTER */

.v2-cinematic-footer {
    margin-top: 44px;
    padding: 0;
    background: #090e16;
    border-top: 1px solid rgba(255, 132, 37, .45);
    color: #f7f8fb;
}

.v2-footer-scene {
    min-height: 350px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
    padding: 65px 24px 30px;
    background-image:
      linear-gradient(to bottom,
        rgba(6, 10, 17, .04) 0%,
        rgba(6, 10, 17, .22) 45%,
        #090e16 100%),
      url("../images/ffx-projects-v2-footer-sunset.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.v2-footer-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-shadow: 0 3px 20px #000;
}

.v2-footer-logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
    filter: drop-shadow(0 0 13px rgba(255,115,30,.75));
}

.v2-footer-branding h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 4vw, 53px);
    font-weight: 900;
    font-style: italic;
    letter-spacing: -.03em;
}

.v2-footer-branding h2 span {
    color: #ff8429;
}

.v2-footer-branding p {
    margin: 0;
    color: #e7d6c8;
    font-size: clamp(10px, 1.3vw, 14px);
    font-weight: 700;
    letter-spacing: .16em;
}

.v2-footer-lower {
    max-width: 1250px;
    margin: auto;
    padding: 10px 24px 28px;
}

.v2-footer-visitor {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(255,130,39,.55);
    border-radius: 15px;
    background: rgba(14,20,30,.87);
    box-shadow: 0 0 25px rgba(255,105,22,.08);
}

.v2-visitor-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 4px 15px;
    overflow-wrap: anywhere;
    color: #f0f3f8;
    font-size: 13px;
    font-weight: 650;
}

.v2-visitor-item + .v2-visitor-item {
    border-left: 1px solid rgba(255,126,32,.4);
}

.v2-visitor-label {
    color: #ff943d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
}

.v2-visitor-location {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.v2-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 22px;
    color: #aab3c1;
    font-size: 11px;
}

.v2-footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.v2-footer-links a,
.v2-footer-links button {
    color: #d4dae4;
    font: inherit;
    text-decoration: none;
}

.v2-footer-links button {
    border: 0;
    background: transparent;
    padding: 0;
}

.v2-footer-links button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.v2-footer-links a:hover {
    color: #ff943d;
}

.v2-footer-node {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: monospace;
}

.v2-node-light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff8b2e;
    box-shadow: 0 0 10px #ff8b2e;
}

.v2-footer-login {
    padding: 10px 17px;
    border: 1px solid #ff8b2e;
    border-radius: 11px;
    color: white;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(255,115,30,.15);
}

.v2-footer-login:hover {
    background: rgba(255,115,30,.15);
    box-shadow: 0 0 20px rgba(255,115,30,.3);
}

@media (max-width: 760px) {
    .v2-footer-scene {
        min-height: 280px;
    }

    .v2-footer-visitor {
        grid-template-columns: 1fr;
    }

    .v2-visitor-item + .v2-visitor-item {
        border-left: 0;
        border-top: 1px solid rgba(255,126,32,.3);
        padding-top: 13px;
    }

    .v2-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}


/* FFX V2 COMPACT FOOTER */

.v2-projects {
    margin-bottom: 16px;
}

.v2-cinematic-footer {
    margin-top: 12px;
}

.v2-footer-scene {
    min-height: 220px;
    padding: 24px 20px 18px;
    background-position: center 50%;
}

.v2-footer-branding {
    gap: 5px;
}

.v2-footer-logo {
    width: 48px;
    height: 48px;
}

.v2-footer-branding h2 {
    font-size: clamp(27px, 3vw, 40px);
}

.v2-footer-branding p {
    font-size: clamp(9px, 1vw, 12px);
}

.v2-footer-lower {
    padding: 6px 20px 16px;
}

.v2-footer-visitor {
    padding: 11px;
    gap: 8px;
}

.v2-visitor-item {
    gap: 3px;
    padding: 3px 12px;
}

.v2-footer-bottom {
    margin-top: 12px;
    gap: 12px;
}

@media (max-width: 760px) {
    .v2-footer-scene {
        min-height: 190px;
        padding: 20px 14px 16px;
    }

    .v2-footer-visitor {
        gap: 5px;
    }
}

/* FFX V2 PRIVACY BANNER */

.v2-consent-banner[hidden] {
    display: none !important;
}

.v2-consent-banner {
    position: fixed;
    z-index: 1000;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 680px;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid rgba(255,138,46,.65);
    border-radius: 18px;
    background: linear-gradient(135deg,#151c27,#090e16);
    color: #f4f6fa;
    box-shadow: 0 12px 55px #000b,
                0 0 26px rgba(255,115,30,.15);
}

.v2-consent-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.v2-consent-header h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
}

.v2-consent-icon {
    color: #ff8b2e;
    font-size: 23px;
}

.v2-consent-banner p {
    color: #b9c3d1;
    font-size: 13px;
    line-height: 1.65;
}

.v2-consent-banner a {
    color: #ff9a43;
    text-decoration: underline;
}

.v2-consent-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 19px;
}

.v2-consent-actions button {
    padding: 11px 25px;
    border-radius: 10px;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
}

#privacy-reject {
    border: 1px solid #526071;
    background: #222d3a;
}

#privacy-accept {
    border: 1px solid #ff9b49;
    background: linear-gradient(120deg,#ff852b,#c84c11);
}

.v2-consent-banner button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.v2-consent-delete {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #ffffff20;
}

#privacy-delete-analytics {
    border: 0;
    padding: 0;
    background: transparent;
    color: #ff8585;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.v2-consent-delete p {
    margin: 8px 0 0;
    font-size: 11px;
}

#privacy-consent-feedback {
    color: #ff8585;
}

@media (max-width: 600px) {
    .v2-consent-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 18px;
        max-height: 90vh;
        overflow-y: auto;
    }
}
