/* Kryzon Store - Enhanced Home Page Styles (Glossy/Modern) */
@import url('variables.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Transitions for Theme */
*,
*::before,
*::after {
    transition: background-color 0.3s ease-in-out,
        border-color 0.3s ease-in-out,
        color 0.3s ease-in-out,
        box-shadow 0.3s ease-in-out;
}

body {
    font-family: var(--font-primary, 'Inter', sans-serif);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 120px;
}

/* Enhanced Theme Variables */
[data-theme="dark"] {
    --bg-primary: #050510;
    --bg-secondary: #0a0a1a;
    --bg-card: rgba(15, 15, 35, 0.8);
    --bg-card-solid: #0f0f23;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #5a5a70;
    --accent: #afff01;
    --accent-dark: #8ecc00;
    --purple: #8b5cf6;
    --purple-dark: #7c3aed;
    --purple-glow: rgba(139, 92, 246, 0.4);
    --border: rgba(139, 92, 246, 0.15);
    --glass-bg: rgba(10, 10, 26, 0.85);
    --glass-border: rgba(139, 92, 246, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --card-gradient: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    --glossy-overlay: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
}

[data-theme="light"] {
    --bg-primary: #f0f2f8;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-solid: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #8a8aa8;
    --accent: #8b5cf6;
    --accent-dark: #7c3aed;
    --purple: #8b5cf6;
    --purple-dark: #7c3aed;
    --purple-glow: rgba(139, 92, 246, 0.3);
    --border: rgba(139, 92, 246, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(139, 92, 246, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.6);
    --card-gradient: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%);
    --glossy-overlay: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.2) 100%);
}

/* Fade-in Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Header - Glossy */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glossy-overlay);
    pointer-events: none;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-accent {
    color: var(--purple);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--purple-glow);
}

.btn-login {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 4px 15px var(--purple-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--purple-glow);
}

/* Notice Bar */
.notice-bar {
    background: linear-gradient(90deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: white;
    padding: 10px 16px;
    font-size: 13px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notice-label {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    color: white;
    white-space: nowrap;
    flex-shrink: 0;
}

.notice-label i {
    font-size: 14px;
    animation: noticePulse 2s infinite;
}

@keyframes noticePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.notice-content {
    flex: 1;
    overflow: hidden;
}

.notice-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    animation: shimmer 3s infinite;
    background-size: 200% 100%;
    pointer-events: none;
}

.notice-bar marquee {
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Hero Carousel */
.hero-carousel {
    margin: 16px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.carousel-track {
    display: flex;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 16/9;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.85) 0%, rgba(99, 102, 241, 0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
}

.slide-overlay h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.slide-badge {
    margin-top: 12px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    font-size: 12px;
    color: white;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 28px;
    border-radius: 4px;
}

/* Main Content */
.main-content {
    padding: 0 16px;
}

.section {
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-left: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '🔥';
    font-size: 16px;
}

/* Category Grid - Enhanced Glossy */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 20px 12px 16px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out backwards;
}

.category-card:nth-child(1) {
    animation-delay: 0.1s;
}

.category-card:nth-child(2) {
    animation-delay: 0.15s;
}

.category-card:nth-child(3) {
    animation-delay: 0.2s;
}

.category-card:nth-child(4) {
    animation-delay: 0.25s;
}

.category-card:nth-child(5) {
    animation-delay: 0.3s;
}

.category-card:nth-child(6) {
    animation-delay: 0.35s;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glossy-overlay);
    pointer-events: none;
    border-radius: 20px;
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--glass-highlight) 50%, transparent 100%);
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: var(--purple);
    box-shadow: 0 12px 32px var(--purple-glow), 0 0 20px var(--purple-glow);
}

.category-image {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    background: transparent;
    position: relative;
    z-index: 1;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Blend mode for transparent images in light mode */
[data-theme="light"] .category-image img {
    mix-blend-mode: multiply;
}

[data-theme="dark"] .category-image img {
    mix-blend-mode: normal;
    filter: drop-shadow(0 4px 8px rgba(139, 92, 246, 0.3));
}

.category-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

/* Footer Section - Glossy */
.footer-section {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 28px;
    margin: 24px 0;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glossy-overlay);
    pointer-events: none;
}

.brand-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.brand-logo span {
    color: var(--purple);
}

.brand-tagline {
    font-size: 13px;
    color: var(--purple);
    margin-bottom: 16px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.footer-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.footer-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 16px 0 8px;
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: var(--purple);
    box-shadow: 0 0 15px var(--purple-glow);
}

.social-btn i {
    font-size: 18px;
}

/* Contact Section */
.contact-section {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glossy-overlay);
    pointer-events: none;
}

.contact-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card-solid);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.contact-link:hover {
    border-color: #25D366;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}

.contact-link i {
    font-size: 26px;
    color: #25D366;
}

.contact-link small {
    color: var(--text-muted);
    font-size: 11px;
}

/* Install Banner */
.install-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    border-radius: 16px;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px var(--purple-glow);
    position: relative;
    overflow: hidden;
}

.install-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
}

.install-banner i {
    font-size: 26px;
    position: relative;
    z-index: 1;
}

.install-banner span {
    flex: 1;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.btn-install {
    padding: 10px 24px;
    background: white;
    color: var(--purple);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-install:hover {
    transform: scale(1.05);
}

/* Live Orders Ticker */
.live-ticker {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    height: 44px;
    z-index: 90;
}

.ticker-label {
    padding: 0 14px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    font-size: 12px;
}

.ticker-name {
    color: var(--text-primary);
    font-weight: 500;
}

.ticker-amount {
    color: var(--purple);
    font-weight: 600;
}

.ticker-status {
    font-weight: 600;
}

.ticker-item.complete .ticker-status,
.ticker-item.approved .ticker-status {
    color: #22c55e;
}

.ticker-item.failed .ticker-status,
.ticker-item.rejected .ticker-status {
    color: #ef4444;
}

/* Bottom Navigation - Glossy */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 14px;
    z-index: 100;
}

.bottom-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glossy-overlay);
    pointer-events: none;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-item i {
    font-size: 22px;
}

.nav-item:hover {
    color: var(--purple);
    transform: translateY(-2px);
}

.nav-item.active {
    color: var(--purple);
}

.nav-center {
    position: relative;
}

.nav-center-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    margin-top: -28px;
    box-shadow: 0 6px 20px var(--purple-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-center:hover .nav-center-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px var(--purple-glow);
}

/* Floating Support */
.floating-support {
    position: fixed;
    right: 16px;
    bottom: 130px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 80;
}

.fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fab:hover {
    transform: scale(1.1) translateY(-4px);
}

.fab-wa {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.fab-wa:hover {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.fab-msg {
    background: linear-gradient(135deg, #00B2FF 0%, #006AFF 100%);
}

.fab-msg:hover {
    box-shadow: 0 8px 24px rgba(0, 178, 255, 0.4);
}

/* Toast/Popup Styles */
.toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 16px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeInUp 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.toast.success {
    border-color: rgba(34, 197, 94, 0.5);
}

.toast.success i {
    color: #22c55e;
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.5);
}

.toast.error i {
    color: #ef4444;
}

.toast i {
    font-size: 22px;
}

.toast span {
    font-weight: 500;
}