/* ========================================
   CINEMATIC UI UPGRADES
   "Going Beyond" - Interactive & Holographic
   ======================================== */

/* 1. INTERACTIVE TERMINAL */
.terminal-window {
    background-color: #0c0c0c;
    border: 1px solid #333;
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    font-family: 'Courier New', Courier, monospace;
    padding: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.terminal-bar {
    background: #1a1a1a;
    padding: 5px 15px;
    border-bottom: 1px solid #333;
    color: #888;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    margin: calc(var(--space-xl) * -1) calc(var(--space-xl) * -1) var(--space-lg) calc(var(--space-xl) * -1);
}

.terminal-content {
    color: #0f0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cmd-line {
    margin-bottom: 5px;
    display: none;
    /* Hidden by default */
}

.cmd-line.visible {
    display: block;
    animation: fadeIn 0.1s forwards;
}

.cmd-cursor::after {
    content: '█';
    animation: blink 1s step-end infinite;
    margin-left: 5px;
    color: var(--gold);
}

.success-msg {
    color: var(--gold);
    font-weight: bold;
    margin-top: 20px;
    border: 1px solid var(--gold);
    padding: 10px;
    display: inline-block;
    background: rgba(184, 134, 11, 0.1);
}

/* 2. HOLOGRAPHIC CARDS */
.holo-card {
    position: relative;
    background: rgba(20, 20, 20, 0.6);
    border-radius: 12px;
    overflow: hidden;
    /* Use CSS variable scaling for the spotlight position */
    --x: 50%;
    --y: 50%;
}

/* The glowing border follows the mouse */
.holo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    /* Border thickness */
    background: radial-gradient(600px circle at var(--x) var(--y),
            rgba(184, 134, 11, 0.8),
            transparent 40%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

/* The subtle inner spotlight */
.holo-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--x) var(--y),
            rgba(255, 255, 255, 0.05),
            transparent 40%);
    z-index: 1;
    pointer-events: none;
}

/* 3. GLITCH TEXT HEADERS */
.cyber-glitch {
    position: relative;
    display: inline-block;
}

.cyber-glitch:hover::before,
.cyber-glitch:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.cyber-glitch:hover::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.cyber-glitch:hover::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    20% {
        clip: rect(80px, 9999px, 90px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    60% {
        clip: rect(60px, 9999px, 20px, 0);
    }

    80% {
        clip: rect(50px, 9999px, 70px, 0);
    }

    100% {
        clip: rect(20px, 9999px, 60px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(15px, 9999px, 35px, 0);
    }

    20% {
        clip: rect(65px, 9999px, 85px, 0);
    }

    40% {
        clip: rect(5px, 9999px, 45px, 0);
    }

    60% {
        clip: rect(55px, 9999px, 15px, 0);
    }

    80% {
        clip: rect(45px, 9999px, 65px, 0);
    }

    100% {
        clip: rect(25px, 9999px, 55px, 0);
    }
}

/* =========================================
   PICASSO BRUTALIST PRICING (Artistic Overhaul)
   ========================================= */

.pricing-grid {
    gap: var(--space-4xl);
    /* Even more breathing room for the art */
}

/* Base Card Art - Asymmetric & Raw */
.picasso-card {
    position: relative;
    background: #050505;
    /* Asymmetric borders: thick left/bottom, thin top/right */
    border-left: 4px solid var(--gold);
    border-bottom: 4px solid var(--gold);
    border-top: 1px solid rgba(184, 134, 11, 0.3);
    border-right: 1px solid rgba(184, 134, 11, 0.3);
    padding: 0;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    isolation: isolate;
    min-height: 100%;
    /* Ensure full height in grid */
    display: flex;
    flex-direction: column;
}

/* Deconstructed "Shards" - decorative background elements */
.picasso-card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    border-top: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    opacity: 0.5;
    transition: all 0.4s ease;
    z-index: -1;
}

.picasso-card::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: -20px;
    width: 2px;
    height: 40px;
    background: var(--gold);
    transform: rotate(45deg);
    opacity: 0.3;
}

/* Hover Effect: "Exploded View" */
.picasso-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: -10px 10px 0px rgba(184, 134, 11, 0.1);
    background: #080808;
    z-index: 10;
}

.picasso-card:hover::before {
    top: -15px;
    right: -15px;
    opacity: 1;
}

/* Header Section: Raw & Chopped */
.picasso-header {
    padding: var(--space-2xl) var(--space-xl);
    border-bottom: 2px dashed rgba(184, 134, 11, 0.2);
    position: relative;
    background: radial-gradient(circle at top right, rgba(184, 134, 11, 0.05), transparent 60%);
}

.picasso-title {
    font-family: var(--font-heading);
    /* Serif or bold heading font */
    font-size: 2rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
    /* Glitch/Offset text effect */
    text-shadow: 2px 2px 0px rgba(184, 134, 11, 0.2);
}

.picasso-price {
    font-family: var(--font-mono);
    font-size: 4rem;
    color: var(--gold);
    line-height: 0.9;
    position: relative;
    display: inline-block;
    margin-top: var(--space-md);
}

.picasso-price small {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-sans);
    position: absolute;
    top: 5px;
    right: -60px;
    width: 50px;
    text-align: left;
    line-height: 1.2;
}

.picasso-discount {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #4CAF50;
    margin-top: 10px;
    border: 1px solid #4CAF50;
    display: inline-block;
    padding: 2px 6px;
    letter-spacing: 1px;
}

/* Content Features: Raw Grid */
.picasso-features {
    display: grid;
    /* Grid lines between items */
    background-image: linear-gradient(rgba(184, 134, 11, 0.1) 1px, transparent 1px);
    background-size: 100% 48px;
    /* Match feature height roughly */
    padding: var(--space-md) 0;
    flex-grow: 1;
}

.picasso-feature {
    display: flex;
    align-items: center;
    padding: 12px var(--space-xl);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.picasso-feature:hover {
    color: var(--gold);
    border-left: 2px solid var(--gold);
    background: rgba(184, 134, 11, 0.05);
    padding-left: calc(var(--space-xl) + 10px);
    /* Shift content */
}

.picasso-feature.locked {
    opacity: 0.4;
    text-decoration: line-through;
}

.feature-icon {
    margin-right: 10px;
    color: var(--gold);
}

/* The "Buy" Button: A piece of the frame */
.picasso-footer {
    padding: var(--space-xl);
    position: relative;
    border-top: 1px solid rgba(184, 134, 11, 0.1);
}

.picasso-btn {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 95% 100%, 0 100%);
    /* Cut corner */
    display: block;
    text-align: center;
    text-decoration: none;
}

.picasso-btn:hover {
    background: var(--gold);
    color: #000;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    /* Restore corner on hover */
}

/* SPECIAL VARIANT: Middle Card (Sovereign) - The Masterpiece */
.picasso-card.masterpiece {
    border-color: var(--gold);
    border-width: 2px;
    transform: scale(1.05);
    z-index: 5;
    background: #0a0a0a;
}

.picasso-card.masterpiece:hover {
    transform: scale(1.08) translateY(-10px);
}

.picasso-card.masterpiece .picasso-header {
    background: var(--gold);
}

.picasso-card.masterpiece .picasso-title {
    color: #000;
    text-shadow: none;
}

.picasso-card.masterpiece .picasso-price {
    color: #000;
}

.picasso-card.masterpiece .picasso-price small {
    color: rgba(0, 0, 0, 0.6);
}

.picasso-card.masterpiece .picasso-discount {
    border-color: #000;
    color: #000;
}