/**
 * Kaos Forge Custom Styles
 * Complete visual styling matching the original Forge-Hub design
 */

/* ===== CSS Variables ===== */
:root {
    --color-background: hsl(0 0% 3%);
    --color-foreground: hsl(0 0% 98%);
    --color-card: hsl(0 0% 5%);
    --color-surface: hsl(210 10% 7%);
    --color-border: hsl(214 20% 15%);
    --color-muted-foreground: hsl(215 20% 65%);

    --color-chaos-red: hsl(10 100% 60%);    /* #ff0055 equivalent */
    --color-chaos-cyan: hsl(180 100% 50%);  /* #00ffff */

    --color-secondary: hsl(206 100% 27%);
    --color-accent: hsl(32 93% 54%);
}

/* ===== Smooth Scrolling ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Body Styles ===== */
body {
    font-family: "Inter", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--color-background);
    color: var(--color-foreground);
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.025em;
}

/* ===== Neon Effects ===== */
.neon-box-red {
    box-shadow:
        0 0 5px rgba(255, 255, 255, 0.5),
        0 0 10px #ff0055,
        inset 0 0 10px #ff0055;
    border-color: #ff0055;
}

.neon-box-cyan {
    box-shadow:
        0 0 5px rgba(255, 255, 255, 0.5),
        0 0 10px #00ffff,
        inset 0 0 10px #00ffff;
    border-color: #00ffff;
}

.neon-border-red {
    border-color: #ff0055 !important;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.5);
}

.neon-border-cyan {
    border-color: #00ffff !important;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.hover\:neon-border-red:hover {
    border-color: #ff0055 !important;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.5);
}

.hover\:neon-border-cyan:hover {
    border-color: #00ffff !important;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.neon-text-red {
    color: #ff0055;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.8);
}

.neon-text-cyan {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* ===== Liquid Flow Animation ===== */
@keyframes liquidFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.neon-flow-text {
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: liquidFlow 15s ease infinite;
}

/* ===== Card Styles ===== */
.app-card,
.product-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.app-card:hover,
.product-card:hover {
    transform: translateY(-8px);
}

/* App Icon Container */
.app-icon-container {
    height: 96px;
    width: 96px;
    border-radius: 1rem;
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.app-icon-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
}

/* Gradient Backgrounds */
.gradient-red {
    background: linear-gradient(135deg, rgba(255, 0, 85, 0.2) 0%, transparent 100%);
}

.gradient-cyan {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, transparent 100%);
}

/* ===== Scroll Animations ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.fade-in-up:nth-child(1) { transition-delay: 0.1s; }
.fade-in-up:nth-child(2) { transition-delay: 0.2s; }
.fade-in-up:nth-child(3) { transition-delay: 0.3s; }
.fade-in-up:nth-child(4) { transition-delay: 0.4s; }
.fade-in-up:nth-child(5) { transition-delay: 0.5s; }
.fade-in-up:nth-child(6) { transition-delay: 0.6s; }

/* ===== Hero Glowing Effect ===== */
.hero-title-glow {
    position: relative;
    display: inline-block;
}

.hero-title-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #ff0055 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(60px);
    border-radius: 50%;
    transform: scale(1.1);
    transition: opacity 0.5s ease;
}

.hero-title-glow:hover::before {
    opacity: 0.4;
}

.hero-title-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #00ffff 0%, transparent 70%);
    opacity: 0.05;
    filter: blur(60px);
    border-radius: 50%;
    transform: scale(1.1) translateX(2rem);
    transition: opacity 0.5s ease;
}

.hero-title-glow:hover::after {
    opacity: 0.3;
}

/* ===== Button Styles ===== */
.btn-chaos-red {
    background: transparent;
    border: 2px solid #ff0055;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-chaos-red:hover {
    background: rgba(255, 0, 85, 0.2);
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.5);
    transform: scale(1.05);
}

.btn-chaos-cyan {
    background: transparent;
    border: 2px solid #00ffff;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-chaos-cyan:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    transform: scale(1.05);
}

/* ===== Mission Section Spinning Circles ===== */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.spin-slow {
    animation: spin 10s linear infinite;
}

.spin-reverse {
    animation: spin-reverse 7s linear infinite;
}

/* ===== Utility Classes ===== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Star Rating ===== */
.star-filled {
    fill: #fbbf24;
    color: #fbbf24;
}

.star-empty {
    fill: none;
    color: #4b5563;
}

/* ===== Product Image Hover ===== */
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.5s ease;
}

.product-card:hover .product-image {
    opacity: 1;
    transform: scale(1.05);
}

/* ===== Badge Styles ===== */
.badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.25rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.badge-category {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: hsl(0 0% 5%);
}

::-webkit-scrollbar-thumb {
    background: hsl(214 20% 15%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(214 20% 20%);
}

/* ===== Focus Styles ===== */
a:focus,
button:focus {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}

/* ===== WordPress Admin Bar Fix ===== */
body.admin-bar nav {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar nav {
        top: 46px;
    }
}

/* ===== Responsive Utilities ===== */
@media (max-width: 768px) {
    .hero-title-glow::before,
    .hero-title-glow::after {
        filter: blur(40px);
    }

    .btn-chaos-red,
    .btn-chaos-cyan {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

/* ===== Loading State ===== */
img:not([src]) {
    opacity: 0;
}

img {
    transition: opacity 0.3s ease;
}

/* ===== Border Utilities ===== */
.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2);
}

/* ===== Background Utilities ===== */
.bg-black\/20 {
    background-color: rgba(0, 0, 0, 0.2);
}

.bg-black\/80 {
    background-color: rgba(0, 0, 0, 0.8);
}

/* ===== Text Utilities ===== */
.tracking-tight {
    letter-spacing: -0.025em;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}
