/**
 * FortKnox Tickets - Main Stylesheet
 * Premium ticket system by Webbfabriken
 */

/* ========================================
   CSS VARIABLES
   ======================================== */

:root {
    /* Brand Colors */
    --fortknox-primary: #1a3a52;
    --fortknox-primary-dark: #0f2940;
    --fortknox-gold: #FFD700;
    --fortknox-gold-dark: #FFA500;
    --fortknox-blue: #0080FF;
    --fortknox-blue-light: #4DA6FF;
    
    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray-50: #F8F9FA;
    --color-gray-100: #F1F3F5;
    --color-gray-200: #E9ECEF;
    --color-gray-300: #DEE2E6;
    --color-gray-400: #CED4DA;
    --color-gray-500: #ADB5BD;
    --color-gray-600: #6C757D;
    --color-gray-700: #495057;
    --color-gray-800: #343A40;
    --color-gray-900: #212529;
    
    /* Status Colors */
    --color-success: #28A745;
    --color-warning: #FFC107;
    --color-danger: #DC3545;
    --color-info: #17A2B8;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ========================================
   RESET & BASE
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-900);
    background-color: var(--color-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--fortknox-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* Page headers now use global component styles from components.css */
/* Remove duplicate definitions - handled by .page-header in components.css */

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--fortknox-gold);
    color: var(--fortknox-primary);
}

.btn-primary:hover {
    background: var(--fortknox-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--fortknox-primary);
    border: 2px solid var(--fortknox-primary);
}

.btn-secondary:hover {
    background: var(--fortknox-primary);
    color: var(--color-white);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.125rem;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
    min-height: 70px;
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    min-width: 180px;
}

.navbar-logo {
    height: 48px;
    width: auto;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.navbar-link {
    color: var(--color-gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.navbar-link:hover {
    color: var(--fortknox-primary);
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--fortknox-gold);
    transition: width 0.3s ease;
}

.navbar-link:hover::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, var(--fortknox-primary) 0%, var(--fortknox-primary-dark) 100%);
    color: var(--color-white);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 128, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.hero-text .highlight {
    color: var(--fortknox-gold);
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    width: 100%;
    max-width: 500px;
    height: auto;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--fortknox-gold);
    color: var(--fortknox-primary);
    border-color: var(--fortknox-gold);
}

.btn-primary:hover {
    background: var(--fortknox-gold-dark);
    border-color: var(--fortknox-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--fortknox-primary);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.125rem;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features {
    padding: var(--space-3xl) 0;
    background: var(--color-gray-50);
}

.features-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--fortknox-primary);
    margin-bottom: var(--space-md);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--color-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--fortknox-gold) 0%, var(--fortknox-gold-dark) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--fortknox-gold) 0%, var(--fortknox-gold-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--color-white);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--fortknox-primary);
    margin-bottom: var(--space-md);
}

.feature-card p {
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats {
    padding: var(--space-3xl) 0;
    background: var(--fortknox-primary);
    color: var(--color-white);
}

.stats-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--fortknox-gold);
    margin-bottom: var(--space-sm);
    display: block;
}

.stat-label {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--fortknox-blue) 0%, var(--fortknox-blue-light) 100%);
    color: var(--color-white);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    opacity: 0.95;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--fortknox-primary-dark);
    color: var(--color-white);
    padding: var(--space-2xl) 0 var(--space-xl);
    margin-top: auto;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--fortknox-gold);
}

.footer-brand p {
    opacity: 0.8;
    margin-bottom: var(--space-lg);
}

.footer-badges {
    display: flex;
    flex-direction: row;
    gap: var(--space-4);
    align-items: center;
    margin-top: var(--space-4);
}

.footer-badges img {
    height: 60px;
    width: auto;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
    color: var(--fortknox-gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    text-align: center;
    opacity: 0.8;
}

/* ========================================
   MOBILE MENU
   ======================================== */

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 999;
    padding: var(--space-8);
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    margin-bottom: var(--space-4);
}

.mobile-menu-list a {
    display: block;
    font-size: var(--text-lg);
    color: var(--text-primary);
    text-decoration: none;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.mobile-menu-list a:hover {
    color: var(--color-primary);
}

.mobile-menu-actions {
    margin-top: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.mobile-menu-actions .btn {
    width: 100%;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    /* Mobile menu button */
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Logo size adjustment */
    .navbar-logo {
        height: 36px;
        width: auto;
    }
    
    .navbar-brand {
        min-width: 140px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-illustration {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .navbar-menu {
        display: none;
    }
}