/* ============================================================
   SpoonSync™ — Shared Stylesheet
   ============================================================ */

/* ------------------------------------------------------------
   Section 1: CSS Custom Properties
   ------------------------------------------------------------ */
:root {
    --color-primary-start: #667eea;
    --color-primary-end: #764ba2;
    --color-gold: #fbbf24;
    --color-gold-end: #f59e0b;
    --color-green: #10b981;
    --color-green-end: #059669;
    --color-red: #ef4444;
    --color-bg: #1f2937;
    --color-card: rgba(255, 255, 255, 0.1);
    --color-card-hover: rgba(255, 255, 255, 0.15);
    --color-card-border: rgba(255, 255, 255, 0.2);
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --color-text-subtle: rgba(255, 255, 255, 0.5);
    --color-border: rgba(255, 255, 255, 0.1);
    --color-tier-free: #10b981;
    --color-tier-warrior: #00d4ff;
    --color-tier-champion: #9333ea;
    --color-tier-locked: #ef4444;
    --gradient-primary: linear-gradient(135deg, var(--color-primary-start) 0%, var(--color-primary-end) 100%);
    --gradient-green: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-end) 100%);
    --gradient-gold: linear-gradient(135deg, var(--color-gold), var(--color-gold-end));
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 30px;
    --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ------------------------------------------------------------
   Section 2: Reset / Base
   ------------------------------------------------------------ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-stack);
    background: var(--gradient-primary);
    color: var(--color-text);
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 80px;
}

h1 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

h2 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* ------------------------------------------------------------
   Section 3: Shared Component Classes
   ------------------------------------------------------------ */

/* Container */
.container {
    max-width: 400px;
    margin: 0 auto;
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--color-card);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

/* Logo — animated gradient text */
.logo {
    font-size: 32px;
    font-weight: bold;
    background: var(--gradient-primary);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s ease infinite;
    margin-bottom: 5px;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Tagline */
.tagline {
    font-size: 14px;
    opacity: 0.9;
}

/* Subtitle */
.subtitle {
    text-align: center;
    opacity: 0.9;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.feature-list li::before {
    content: "\2713  ";
    color: var(--color-green);
    font-weight: bold;
    margin-right: 5px;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--gradient-gold);
    color: var(--color-primary-end);
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Quick Actions Grid */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

/* Action Button */
.action-btn {
    background: var(--color-card);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-text);
    padding: 15px;
    border-radius: var(--radius-md);
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    padding: 5px 0;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--color-border);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 8px 10px;
    font-size: 12px;
    transition: all 0.3s ease;
    flex: 1;
    min-height: 44px;
    min-width: 44px;
}

.nav-item:hover {
    color: rgba(255, 255, 255, 0.9);
}

.nav-item.active {
    color: var(--color-gold);
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
}

/* ------------------------------------------------------------
   Section 4: Reusable Utility Classes
   ------------------------------------------------------------ */

/* Glass morphism card */
.card {
    background: var(--color-card);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 25px;
    margin: 20px auto;
    max-width: 400px;
    border: 1px solid var(--color-card-border);
}

.card:hover {
    background: var(--color-card-hover);
}

/* Primary gradient button */
.btn-primary {
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    color: var(--color-text);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Gold accent button */
.btn-gold {
    background: var(--gradient-gold);
    color: var(--color-primary-end);
    border: 2px solid var(--color-gold);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
}

/* Tier badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge--free {
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-tier-free);
    border: 1px solid var(--color-tier-free);
}

.badge--warrior {
    background: rgba(0, 212, 255, 0.2);
    color: var(--color-tier-warrior);
    border: 1px solid var(--color-tier-warrior);
}

.badge--champion {
    background: rgba(147, 51, 234, 0.2);
    color: var(--color-tier-champion);
    border: 1px solid var(--color-tier-champion);
}

.badge--locked {
    background: rgba(239, 68, 68, 0.2);
    color: var(--color-tier-locked);
    border: 1px solid var(--color-tier-locked);
}

/* Page header */
.page-header {
    text-align: center;
    margin-bottom: 25px;
}

.page-header h1 {
    margin-bottom: 8px;
}

.page-header p {
    color: var(--color-text-muted);
    font-size: 14px;
}

/* Section title */
.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-text);
}

/* ------------------------------------------------------------
   Section 5: Large Text Mode (Accessibility)
   ------------------------------------------------------------ */
body.large-text {
    font-size: 18px;
}

body.large-text h1 {
    font-size: 34px !important;
}

body.large-text h2 {
    font-size: 24px !important;
}

body.large-text .action-btn {
    font-size: 18px !important;
    padding: 18px !important;
}

body.large-text .nav-icon {
    font-size: 24px !important;
}

body.large-text .nav-label {
    font-size: 13px !important;
}
