/* ========================================
   COMMON STYLES - Shared across all pages
   Design tokens, utilities, and common components
======================================== */

/* ========================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
======================================== */
:root {
    /* Color Palette */
    --color-primary-purple: #9333ea;
    --color-primary-pink: #ec4899;
    --color-primary-violet: #6b46c1;
    --color-accent-light: #a78bfa;
    --color-accent-lighter: #c4b5fd;
    --color-accent-lightest: #e2d5ff;
    
    /* Background Colors */
    --color-bg-dark: #0a0a0a;
    --color-bg-card: rgba(107, 70, 193, 0.1);
    --color-bg-card-hover: rgba(107, 70, 193, 0.2);
    --color-bg-navbar: rgba(10, 10, 10, 0.95);
    
    /* Border Colors */
    --color-border: rgba(107, 70, 193, 0.3);
    --color-border-hover: #9333ea;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary-purple), var(--color-primary-pink));
    --gradient-radial-hero: radial-gradient(circle at 50% 50%, var(--color-primary-violet) 0%, var(--color-bg-dark) 50%);
    --gradient-card-hover: linear-gradient(135deg, rgba(147, 51, 234, 0.05), rgba(236, 72, 153, 0.05));
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 5rem;
    
    /* Typography */
    --font-family-base: 'Kalam', 'Caveat', 'Patrick Hand', 'Segoe Print', 'Bradley Hand ITC', 'Chilanka', 'TSCu_Comic', 'casual', cursive;
    --font-size-xs: 0.9rem;
    --font-size-sm: 1rem;
    --font-size-base: 1.1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.4rem;
    --font-size-2xl: 1.7rem;
    --font-size-3xl: 2.2rem;
    --font-size-4xl: 2.8rem;
    --font-size-hero: 4.5rem;
    
    /* Border Radius */
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --radius-xl: 20px;
    --radius-full: 50px;
    
    /* Shadows */
    --shadow-card: 0 20px 40px rgba(147, 51, 234, 0.3), 0 10px 20px rgba(0, 0, 0, 0.2);
    --shadow-youtube: 0 10px 30px rgba(0, 0, 0, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.4s ease;
    --transition-cubic: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Z-index Scale */
    --z-dropdown: 100;
    --z-navbar: 1000;
    --z-hamburger: 1001;
    --z-hero-content: 1;
    --z-card-content: 2;
}

/* ========================================
   RESET & BASE STYLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-base);
    background: var(--color-bg-dark);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   UTILITY CLASSES
======================================== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    transition: transform var(--transition-base);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn:hover {
    transform: scale(1.05);
}

.btn--primary {
    background: var(--gradient-primary);
    color: #ffffff;
    border: 1px solid var(--color-border-hover);
}

.btn--secondary {
    background: rgba(147, 51, 234, 0.2);
    color: #ffffff;
    border: 1px solid var(--color-border);
}

.btn--secondary:hover {
    background: rgba(147, 51, 234, 0.3);
    border-color: var(--color-border-hover);
}

.hidden {
    display: none;
}

/* ========================================
   COMMON SECTION STYLES
======================================== */
.section {
    scroll-margin-top: 100px;
    padding: var(--spacing-3xl) var(--spacing-xl);
    margin: 0 auto;
    max-width: 1400px;
}

.section-title {
    font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-4xl));
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    color: #ffffff;
    line-height: 1.2;
    position: relative;
    padding-bottom: var(--spacing-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-description {
    text-align: center;
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   PRODUCT CARD STYLES - Common to all pages
======================================== */
/* Product Badges Container */
.product-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.product-type {
    display: block;
    width: fit-content;
    margin: 0 auto 1.5rem auto;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
}

.product-card:hover .product-type {
    transform: translateY(-2px) scale(1.05);
}

.product-type--board-game {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3) 0%, rgba(236, 72, 153, 0.15) 100%);
    color: #ffffff;
    border-color: rgba(236, 72, 153, 0.4);
}

.product-type--mobile-app {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(34, 197, 94, 0.15) 100%);
    color: #ffffff;
    border-color: rgba(34, 197, 94, 0.4);
}

.product-type--web-app {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0.15) 100%);
    color: #ffffff;
    border-color: rgba(59, 130, 246, 0.4);
}

/* Product Status Labels */
.product-status {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
}

.product-card:hover .product-status {
    transform: translateY(-2px) scale(1.05);
}

.product-status--in-development {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3) 0%, rgba(251, 191, 36, 0.15) 100%);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.4);
}

.product-status--ready {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(34, 197, 94, 0.15) 100%);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.4);
}

.product-card {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.12) 0%, rgba(147, 51, 234, 0.08) 100%);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 25px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    will-change: transform;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(147, 51, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.product-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, transparent 0%, rgba(147, 51, 234, 0.3) 50%, rgba(236, 72, 153, 0.3) 100%);
    border-radius: 25px;
    opacity: 0;
    transition: all 0.5s ease;
    z-index: -1;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(147, 51, 234, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, rgba(147, 51, 234, 0.05), rgba(236, 72, 153, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    border-radius: 25px;
}

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

.product-card:hover::after {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02) rotateX(2deg);
    border-color: rgba(236, 72, 153, 0.6);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 15px 30px rgba(147, 51, 234, 0.3),
        0 10px 20px rgba(236, 72, 153, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.product-card:focus {
    outline: 3px solid #ec4899;
    outline-offset: 3px;
}

.product-card:active {
    transform: translate3d(0, -4px, 0) scale(1.01);
}

.product-card > * {
    position: relative;
    z-index: 2;
}

.product-card__icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    display: block;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.product-card:hover .product-card__icon {
    transform: scale(1.15) rotateZ(5deg) translateY(-5px);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.product-card__title {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.3;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #e2d5ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-card:hover .product-card__title {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-card__description {
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
}

.product-card:hover .product-card__description {
    transform: translateY(-1px);
    color: rgba(255, 255, 255, 0.95);
}

/* ========================================
   PRICE BADGES - Product Cards
======================================== */
.price-badge {
    display: block;
    width: fit-content;
    margin: auto auto 0 auto;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 3;
}

.price-badge.free {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(34, 197, 94, 0.15) 100%);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.4);
}

.price-badge.paid {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.3) 0%, rgba(147, 51, 234, 0.15) 100%);
    color: #ffffff;
    border-color: rgba(147, 51, 234, 0.4);
}

.product-card:hover .price-badge {
    transform: translateY(-2px) scale(1.05);
}