/* Berlingvo Design System & Branding Tokens */

:root {
    /* New Light/Premium Palette */
    --bg-main: #F5F5F7;
    --surface: #FFFFFF;
    --accent: #0D9488; /* Calm Teal */
    --accent-muted: #F0FDFA;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --border: #E5E7EB;

    /* Brand Colors (Keep for Logo/Badges only) */
    --brand-black: #000000;
    --brand-yellow: #F3B417;
    --brand-red: #D01C1F;

    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    /* Typography Scale */
    --text-display: clamp(1.875rem, 5vw, 3rem);
    --text-heading: clamp(1.25rem, 3vw, 1.875rem);
    --text-subheading: clamp(1rem, 2.5vw, 1.25rem);
    --text-body: 1rem;
    --text-small: 0.875rem;
    --text-caption: 0.75rem;

    /* Profile cover gradient */
    --cover-gradient: linear-gradient(135deg, #0a0a0a 0%, #1c1c1c 50%, #2a2a2a 100%);
}

/* Base Styles */
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Premium Layout Elements */
.premium-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    padding: 1.5rem; /* Default padding */
}

@media (max-width: 640px) {
    .premium-card {
        padding: 1rem;
        border-radius: 0.875rem;
    }
}

.premium-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 148, 136, 0.2);
}

/* Responsive Typography */
h1 { font-size: clamp(1.5rem, 5vw, 2.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.125rem, 4vw, 2rem); line-height: 1.2; }
h3 { font-size: clamp(1rem, 3vw, 1.5rem); line-height: 1.3; }

/* Display Font Utility */
.font-display {
    font-family: 'DM Serif Display', serif;
}

/* Page Header Pattern */
.page-header {
    margin-bottom: 1.5rem;
}
.page-header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: var(--text-heading);
    color: var(--text-main);
    line-height: 1.2;
}
.page-header p {
    font-size: var(--text-small);
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Profile Cover Banner */
.profile-cover {
    background: var(--cover-gradient);
    position: relative;
    overflow: hidden;
}
.profile-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Buttons System */
.btn-primary {
    background-color: var(--accent);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--surface);
    color: var(--text-main);
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--bg-main);
}

.btn-ghost {
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.2s ease;
}

.btn-ghost:hover {
    color: var(--text-main);
}

/* Input Fields */
.form-input {
    height: 42px;
    background-color: #ffffff;
    border: 1px solid #D1D5DB; /* gray-300 */
    border-radius: 0.75rem; /* rounded-xl */
    padding: 0 1rem;
    width: 100%;
    outline: none;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: #F3B417; /* brand-yellow */
    box-shadow: 0 0 0 1px #F3B417;
}

.form-input::placeholder {
    color: #9CA3AF;
}

/* New Standard Buttons (My Materials Style) */
.btn-yellow {
    height: 42px;
    background-color: #F3B417;
    color: #000000;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(243, 180, 23, 0.1), 0 2px 4px -1px rgba(243, 180, 23, 0.06);
    transition: all 0.2s ease;
}

.btn-yellow:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-red {
    height: 42px;
    background-color: #D01C1F;
    color: #ffffff;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(208, 28, 31, 0.1), 0 2px 4px -1px rgba(208, 28, 31, 0.06);
    transition: all 0.2s ease;
}

.btn-red:hover {
    background-color: #b91c1c;
    transform: translateY(-1px);
}

.btn-black {
    height: 42px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    transition: all 0.2s ease;
}

/* Interactive Tabs */
.tab-item {
    padding-bottom: 0.75rem;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-item.active {
    border-bottom-color: var(--accent);
    color: var(--text-main);
}

/* Utility Classes */
.shadow-premium {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.active-shrink:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
}

/* Premium Form Design System */
.premium-form-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #475569; /* slate-600 */
    margin-bottom: 0.75rem;
    display: block;
    padding-left: 0.5rem;
}

.premium-form-input {
    width: 100% !important;
    height: 64px;
    padding: 0 1.5rem !important;
    background-color: #f8fafc !important; /* slate-50 */
    border: 2px solid #f1f5f9 !important; /* slate-100 */
    border-radius: 1.5rem !important;
    outline: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 700 !important;
    color: #0f172a !important; /* slate-900 */
    font-size: 16px !important;
    box-shadow: none !important;
}

.premium-form-input:focus {
    background-color: #ffffff !important;
    border-color: #f3b417 !important; /* brand-yellow */
    box-shadow: 0 20px 25px -5px rgba(243, 180, 23, 0.08) !important;
    transform: translateY(-2px);
}

.premium-form-input::placeholder {
    color: #94a3b8 !important; /* slate-400 */
    font-weight: 600 !important;
    opacity: 0.4 !important;
}

textarea.premium-form-input {
    height: auto !important;
    min-height: 120px !important;
    padding: 1.25rem 1.5rem !important;
    line-height: 1.6 !important;
    resize: none !important;
}

.premium-form-btn-primary {
    background-color: #f3b417; /* brand-yellow */
    color: #000;
    font-weight: 900;
    height: 64px;
    border-radius: 1.5rem;
    padding: 0 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(243, 180, 23, 0.3);
}

.premium-form-btn-primary:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.1);
}

.premium-form-btn-secondary {
    background-color: #fff1f2; /* rose-50 */
    color: #d01c1f; /* brand-red */
    font-weight: 900;
    height: 64px;
    border-radius: 1.5rem;
    padding: 0 2rem;
    border: 2px solid #ffe4e6; /* rose-100 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.premium-form-btn-secondary:hover {
    background-color: #d01c1f;
    color: #fff;
    border-color: #d01c1f;
}

.premium-form-error {
    font-size: 10px;
    font-weight: 800;
    color: #d01c1f; /* brand-red */
    padding-left: 0.5rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Mobile Adjustments for Forms */
@media (max-width: 640px) {
    .premium-form-input,
    .premium-form-btn-primary,
    .premium-form-btn-secondary {
        height: 48px; /* Compact for mobile */
        border-radius: 1rem !important;
    }
    .premium-form-label {
        font-size: 9px;
        margin-bottom: 0.375rem;
        letter-spacing: 0.08em;
    }
    textarea.premium-form-input {
        min-height: 96px !important;
        padding: 0.875rem 1.25rem !important;
    }
}
/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

/* Extended Shadows */
.shadow-premium-lg {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.03), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
}

/* Brand Gradients */
.bg-brand-gradient {
    background: linear-gradient(135deg, #000000 0%, #2d2d2d 100%);
}

.text-brand-gradient {
    background: linear-gradient(135deg, #000000 0%, #D01C1F 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: flex-start; /* Align items to top to respect safe area at bottom */
    z-index: 50;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: color 0.2s ease;
    padding: 0 0.75rem;
    height: 64px; /* Fixed height for interaction area above safe-area */
}

.mobile-nav-item.active {
    color: var(--brand-red);
}

.mobile-nav-item i {
    font-size: 18px;
    margin-bottom: 2px;
}

/* Language Badges */
.lang-badge {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #555;
    font-weight: 500;
    letter-spacing: 0.02em;
}
