/*
Theme Name: EventMonitor
Theme URI: https://eventmonitor.app
Description: Custom theme for the EventMonitor Android application website.
Version: 1.0
Author: Best Minds
Author URI: https://eventmonitor.app
Text Domain: eventmonitor
*/

/* ========== Reset & Base ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #4A40B0;
    --primary-light: #6B5DD3;
    --primary-dark: #3A3090;
    --on-primary: #FFFFFF;
    --cyan-light: #7DD3E8;
    --teal-medium: #5BAED9;
    --purple-main: #5B4FC7;
    --surface: #FCFAFF;
    --on-surface: #1B1B1F;
    --on-surface-muted: #79747E;
    --secondary: #4A90B8;
    --tertiary: #6BA889;
    --error: #C62828;
    --primary-container: #E8E5FF;
    --secondary-container: #D6EDFA;
    --gradient: linear-gradient(135deg, #7DD3E8 0%, #5BAED9 30%, #6B8FD4 60%, #5B4FC7 100%);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 28px;
    --shadow: 0 2px 12px rgba(74, 64, 176, 0.12);
    --shadow-lg: 0 8px 32px rgba(74, 64, 176, 0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--on-surface);
    background: var(--surface);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== Layout ========== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== Header / Navigation ========== */
.site-header {
    background: var(--primary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--on-primary);
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.site-logo img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
}

.site-nav a:hover,
.site-nav .current-menu-item a {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.15);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--on-primary);
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
}

/* ========== Hero Section ========== */
.hero {
    background: var(--gradient);
    padding: 100px 24px 80px;
    text-align: center;
    color: var(--on-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    margin-bottom: 32px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero .tagline {
    font-size: 22px;
    opacity: 0.92;
    line-height: 1.5;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--on-primary);
    color: var(--primary);
    padding: 16px 36px;
    border-radius: var(--radius-md);
    font-size: 20px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    color: var(--primary);
}

/* ========== Features Section ========== */
.features {
    padding: 80px 24px;
    background: var(--surface);
}

.features h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.features .subtitle {
    text-align: center;
    font-size: 19px;
    color: var(--on-surface-muted);
    margin-bottom: 56px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.feature-icon.purple { background: var(--primary-container); }
.feature-icon.blue { background: var(--secondary-container); }
.feature-icon.green { background: #E0F2E9; }

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 16px;
    color: var(--on-surface-muted);
    line-height: 1.6;
}

/* ========== How It Works ========== */
.how-it-works {
    padding: 80px 24px;
    background: var(--primary-container);
}

.how-it-works h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 56px;
}

.steps {
    display: flex;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
}

.step {
    text-align: center;
    flex: 1;
    max-width: 250px;
}

.step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--on-surface);
}

.step p {
    font-size: 16px;
    color: var(--on-surface-muted);
    line-height: 1.5;
}

/* ========== CTA Section ========== */
.cta-section {
    padding: 80px 24px;
    background: var(--gradient);
    text-align: center;
    color: var(--on-primary);
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 19px;
    opacity: 0.9;
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--on-primary);
    color: var(--primary);
    padding: 16px 40px;
    border-radius: var(--radius-md);
    font-size: 20px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    color: var(--primary);
}

/* ========== Footer ========== */
.site-footer {
    background: var(--on-surface);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 24px 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.footer-links h4 {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    line-height: 2;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== Page Content (Privacy, ToS) ========== */
.page-header {
    background: var(--gradient);
    padding: 60px 24px;
    text-align: center;
    color: var(--on-primary);
}

.page-header h1 {
    font-size: 40px;
    font-weight: 700;
}

.page-header p {
    font-size: 18px;
    opacity: 0.85;
    margin-top: 8px;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.page-content h2 {
    font-size: 26px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 14px;
}

.page-content h3 {
    font-size: 21px;
    font-weight: 600;
    color: var(--on-surface);
    margin-top: 28px;
    margin-bottom: 10px;
}

.page-content p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #444;
}

.page-content ul, .page-content ol {
    margin-bottom: 16px;
    padding-left: 28px;
}

.page-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #444;
}

.page-content strong {
    color: var(--on-surface);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero .tagline {
        font-size: 18px;
    }

    .hero-logo {
        width: 90px;
        height: 90px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .site-nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    }

    .site-nav ul.active {
        display: flex;
    }

    .site-nav a {
        display: block;
        padding: 12px 20px;
    }

    .nav-toggle {
        display: block;
    }

    .page-header h1 {
        font-size: 30px;
    }
}
