/**
 * Lightransfer - Custom CSS
 * =========================
 * All 20 TailwindCSS/JavaScript features
 */

/* ============================================
   FEATURE 1: Stripe-Style Animated Vertical Tabs
   ============================================ */
.stripe-tabs {
    position: relative;
}

.stripe-tabs .tab-indicator {
    position: absolute;
    left: 0;
    background: linear-gradient(135deg, #b08d5b 0%, #c46a3d 100%);
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.stripe-tabs .tab-item {
    position: relative;
    z-index: 1;
    cursor: pointer;
    padding: 1rem 1.5rem;
    transition: all 0.2s;
}

.stripe-tabs .tab-item.active {
    color: white;
}

.stripe-tabs .tab-item:not(.active):hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
}

/* ============================================
   FEATURE 2: Infinite Animated Marquee
   ============================================ */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 25s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

.stroke-text {
    color: #faf6f0;
    font-weight: 900;
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        -2px 0 0 #000,
        2px 0 0 #000,
        0 -2px 0 #000,
        0 2px 0 #000;
}

/* ============================================
   FEATURE 3: TypeWriter Effect
   ============================================ */
.typewriter {
    overflow: hidden;
    border-right: 2px solid #b08d5b;
    animation:
        typing 3.5s steps(40, end),
        blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #b08d5b;
    }
}

/* ============================================
   FEATURE 4: SVG Morph
   ============================================ */
.svg-morph path {
    transition: d 0.5s ease-in-out;
}

.svg-morph:hover path {
    /* Path morphing handled by JavaScript */
}

/* ============================================
   FEATURE 5: Magnetic Buttons
   ============================================ */
.magnetic-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.magnetic-btn:hover {
    /* Transform handled by JavaScript */
}

.magnetic-btn::after {
    content: '';
    position: absolute;
    inset: -5px;
    z-index: -1;
}

/* ============================================
   FEATURE 6: Accordion
   ============================================ */
.accordion-item {
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
}

/* ============================================
   FEATURE 7: Tab Navigation
   ============================================ */
.tab-navigation {
    position: relative;
    display: flex;
    gap: 0.5rem;
}

.tab-navigation .tab-underline {
    position: absolute;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, #b08d5b, #c46a3d);
    transition: all 0.3s ease;
}

.tab-navigation .nav-tab {
    padding: 0.75rem 1.5rem;
    color: #94a3b8;
    transition: color 0.2s;
}

.tab-navigation .nav-tab.active {
    color: white;
}

/* ============================================
   FEATURE 8: Modal Dialog
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

/* ============================================
   FEATURE 9: Tooltips
   ============================================ */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 0.5rem 1rem;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    color: white;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e293b;
}

.tooltip-container:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
}

/* ============================================
   FEATURE 10: Neo-Brutalism
   ============================================ */
.neo-brutal-card {
    background: linear-gradient(135deg, #b08d5b 0%, #c46a3d 100%);
    border: 4px solid #000;
    box-shadow: 8px 8px 0px 0px rgba(0, 0, 0, 1);
    transition: all 0.2s ease;
}

.neo-brutal-card:hover {
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1);
    transform: translate(2px, 2px);
}

.neo-brutal-btn {
    border: 3px solid #000;
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1);
    font-weight: 700;
    transition: all 0.1s ease;
}

.neo-brutal-btn:hover {
    box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 1);
    transform: translate(2px, 2px);
}

.neo-brutal-btn:active {
    box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 1);
    transform: translate(4px, 4px);
}

/* ============================================
   FEATURE 11: Skeleton Loading State
   ============================================ */
.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    width: 100%;
}

.skeleton-circle {
    border-radius: 50%;
}

/* ============================================
   FEATURE 12: 3D Push & Neon Glow Buttons
   ============================================ */
.push-3d-btn {
    position: relative;
    transform-style: preserve-3d;
    transform: perspective(1000px) translateZ(0);
    transition: all 0.2s ease;
}

.push-3d-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: inherit;
    transform: translateZ(-10px);
    filter: brightness(0.6);
}

.push-3d-btn:hover {
    transform: perspective(1000px) translateZ(5px);
}

.push-3d-btn:active {
    transform: perspective(1000px) translateZ(-5px);
}

.neon-glow-btn {
    position: relative;
}

.neon-glow-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #b08d5b, #c46a3d, #c9a9a6, #b08d5b);
    background-size: 300% 300%;
    border-radius: 0.85rem;
    filter: blur(8px);
    opacity: 0;
    z-index: -1;
    animation: neon-glow 3s ease infinite;
    transition: opacity 0.3s ease;
}

.neon-glow-btn:hover::before {
    opacity: 0.7;
}

@keyframes neon-glow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ============================================
   FEATURE 13: Modern Badges & Tags
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.badge-primary {
    background: linear-gradient(135deg, rgba(176, 141, 91, 0.2) 0%, rgba(196, 106, 61, 0.2) 100%);
    color: #c4a882;
    border: 1px solid rgba(196, 106, 61, 0.3);
}

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-warning {
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-outline {
    background: transparent;
    border: 1px solid currentColor;
}

.badge-dot::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: currentColor;
    margin-right: 0.5rem;
}

/* ============================================
   FEATURE 14: Showcase Cards
   ============================================ */
.showcase-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
}

.showcase-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.showcase-card img {
    transition: transform 0.5s ease;
}

.showcase-card:hover img {
    transform: scale(1.1);
}

.showcase-card .showcase-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.showcase-card:hover .showcase-content {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================
   FEATURE 15: Stats Grid with Animation
   ============================================ */
.stats-grid {
    display: grid;
    gap: 1rem;
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent,
            rgba(176, 141, 91, 0.1),
            transparent);
    animation: stat-rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover::before {
    opacity: 1;
}

@keyframes stat-rotate {
    100% {
        transform: rotate(360deg);
    }
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   FEATURE 16: Dashboard Charts
   ============================================ */
.chart-container {
    position: relative;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: chart-draw 2s ease forwards;
}

@keyframes chart-draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* ============================================
   FEATURE 17: Masked Text
   ============================================ */
.masked-text {
    background: linear-gradient(135deg, #b08d5b 0%, #c46a3d 50%, #c9a9a6 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 8s ease infinite;
}

.masked-text-image {
    background-image: url('/public/images/texture.jpg');
    background-size: cover;
    background-position: center;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ============================================
   FEATURE 18: Modern Footer (in footer.php)
   ============================================ */

/* ============================================
   FEATURE 19: Notification Toasts
   ============================================ */
.toast {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 4px solid #000;
    box-shadow: 6px 6px 0 0 #000;
    transform: translateX(120%);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: auto;
    max-width: 400px;
    min-width: 320px;
    border-radius: 0;
}

.toast.show {
    transform: translateX(0);
}

.toast.hiding {
    transform: translateX(120%);
    opacity: 0;
}

/* Neo-Brutalism Color Variants */
.toast-success {
    background-color: #bbf7d0;
    /* green-200 */
}

.toast-error {
    background-color: #fecaca;
    /* red-200 */
}

.toast-warning {
    background-color: #fde68a;
    /* amber-200 */
}

.toast-info {
    background-color: #bfdbfe;
    /* blue-200 */
}

.toast:hover {
    transform: translateX(-4px);
    box-shadow: 10px 10px 0 0 #000;
}

.toast-close {
    cursor: pointer;
}

/* ============================================
   FEATURE 20: Loading Overlay
   ============================================ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
}

.loading-spinner::before,
.loading-spinner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid transparent;
}

.loading-spinner::before {
    border-top-color: #b08d5b;
    animation: spin 1s linear infinite;
}

.loading-spinner::after {
    border-right-color: #c46a3d;
    animation: spin 1.5s linear infinite reverse;
    inset: 8px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #b08d5b 0%, #c46a3d 50%, #c9a9a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hover lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Focus ring */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(176, 141, 91, 0.5);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Selection */
::selection {
    background: rgba(176, 141, 91, 0.3);
    color: white;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .stat-value {
        font-size: 1.75rem;
    }

    .neo-brutal-card {
        box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1);
    }
}

/* ============================================
   Neo-Brutalism Cookie Consent
   ============================================ */
.border-3 {
    border-width: 3px;
}

/* Cookie consent appear animation */
#cookie-consent {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookie-consent.animate-slide-up {
    animation: cookie-slide-up 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Extracted from footer.php
   ============================================ */
/* Neo-Brutalist Stroke Text */
.stroke-text-brutal {
    -webkit-text-stroke: 1px #000;
    color: transparent;
    font-weight: 900;
}

/* Marquee Animation (Alias for existing or new usage) */
.animate-marquee {
    animation: marquee 25s linear infinite;
}

/* ============================================
   Extracted from home.php
   ============================================ */
.text-shadow-neo {
    text-shadow: 4px 4px 0px #000;
}


@keyframes cookie-slide-up {
    0% {
        transform: translateY(120%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Cookie toggle switches */
#cookie-settings-modal input[type="checkbox"]:checked+div+div {
    transform: translateX(24px);
}

/* Cookie banner shake animation for attention */
@keyframes cookie-shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-2deg);
    }

    75% {
        transform: rotate(2deg);
    }
}

#cookie-consent:hover svg {
    animation: cookie-shake 0.5s ease-in-out;
}