/* GreyButUseful - Warm, Friendly Design System */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');

/* Design Tokens */
:root {
    /* Font */
    --font-main: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Warm, friendly colors */
    --coral: #ff6b6b;
    --coral-dark: #ff5252;
    --coral-light: #fff0f0;
    --teal: #20c997;
    --teal-dark: #12b886;
    --teal-light: #e6fcf5;
    --sunny: #fcc419;
    --sunny-light: #fff9db;
    --sky: #339af0;
    --sky-light: #e7f5ff;
    --lavender: #845ef7;
    --lavender-light: #f3f0ff;
    --green: #51cf66;
    --green-light: #ebfbee;
    --orange: #ff922b;
    --orange-light: #fff4e6;
    
    /* Neutrals - warm tinted */
    --text-dark: #2d3436;
    --text-medium: #636e72;
    --text-light: #b2bec3;
    --bg-white: #ffffff;
    --bg-warm: #fefefe;
    --bg-cream: #faf9f7;
    --bg-soft: #f8f6f4;
    --border-light: #eee9e4;
    --border-medium: #ddd5cc;
    
    /* Status colors */
    --success: #51cf66;
    --success-light: #ebfbee;
    --warning: #fcc419;
    --warning-light: #fff9db;
    --error: #ff6b6b;
    --error-light: #fff0f0;
    --info: #339af0;
    --info-light: #e7f5ff;
    
    /* Shadows - soft and warm */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 16px 60px rgba(0,0,0,0.1);
    --shadow-coral: 0 8px 30px rgba(255, 107, 107, 0.25);
    --shadow-teal: 0 8px 30px rgba(32, 201, 151, 0.25);
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 50px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-warm);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--coral);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--coral-dark);
}

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

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

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

p {
    color: var(--text-medium);
}

.text-small { font-size: 0.875rem; }
.text-large { font-size: 1.125rem; }
.text-muted { color: var(--text-light); }
.text-coral { color: var(--coral); }
.text-teal { color: var(--teal); }
.text-center { text-align: center; }

/* Navigation */
.navbar {
    background: var(--bg-white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

.logo h1 a {
    color: inherit;
    text-decoration: none;
}

.logo h1 span,
.logo h1 a span {
    color: var(--coral);
}

.logo .tagline {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-medium);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--coral);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: var(--radius-full);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--coral);
    color: white;
    border-color: var(--coral);
}

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

.btn-secondary {
    background: var(--bg-soft);
    color: var(--text-dark);
    border-color: var(--bg-soft);
}

.btn-secondary:hover {
    background: var(--border-light);
    border-color: var(--border-light);
    color: var(--text-dark);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--border-medium);
}

.btn-outline:hover {
    background: var(--bg-soft);
    border-color: var(--text-dark);
}

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

.btn-teal:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-teal);
}

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

.btn-white:hover {
    background: var(--bg-cream);
    border-color: var(--bg-cream);
}

.btn-ghost {
    background: transparent;
    color: var(--text-medium);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--bg-soft);
    color: var(--text-dark);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 0.75rem;
}

/* Cards */
.card {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--coral);
    box-shadow: var(--shadow-md);
}

.card-flat {
    border: none;
    box-shadow: var(--shadow-sm);
}

.card-flat:hover {
    box-shadow: var(--shadow-lg);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-full);
}

.badge-coral {
    background: var(--coral-light);
    color: var(--coral);
}

.badge-teal {
    background: var(--teal-light);
    color: var(--teal);
}

.badge-sunny {
    background: var(--sunny-light);
    color: #e67700;
}

.badge-sky {
    background: var(--sky-light);
    color: var(--sky);
}

.badge-lavender {
    background: var(--lavender-light);
    color: var(--lavender);
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-light);
    color: #e67700;
}

.badge-error {
    background: var(--error-light);
    color: var(--error);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-label .required {
    color: var(--coral);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.375rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--coral);
    background: var(--coral-light);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-light);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
    border-color: var(--error);
    background: var(--error-light);
}

.form-input.success,
.form-textarea.success,
.form-select.success {
    border-color: var(--success);
    background: var(--success-light);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23636e72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.form-error {
    font-size: 0.85rem;
    color: var(--error);
    margin-top: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--coral);
    cursor: pointer;
}

.form-check-label {
    font-size: 0.95rem;
    color: var(--text-medium);
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    background: var(--coral-light);
    color: var(--coral);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 550px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    background: var(--bg-cream);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--text-medium);
}

.breadcrumb a:hover {
    color: var(--coral);
}

.breadcrumb .separator {
    color: var(--text-light);
}

/* Avatar */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-white);
}

.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 48px; height: 48px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 96px; height: 96px; }

.avatar-group {
    display: flex;
}

.avatar-group .avatar {
    margin-left: -12px;
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

/* Alert */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-success {
    background: var(--success-light);
    color: #2b8a3e;
}

.alert-warning {
    background: var(--warning-light);
    color: #e67700;
}

.alert-error {
    background: var(--error-light);
    color: #c92a2a;
}

.alert-info {
    background: var(--info-light);
    color: #1971c2;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    position: relative;
}

.progress-step::after {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--border-light);
    margin-left: 0.5rem;
}

.progress-step:last-child::after {
    display: none;
}

.progress-step .step-number {
    width: 28px;
    height: 28px;
    background: var(--bg-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.progress-step.active {
    color: var(--coral);
}

.progress-step.active .step-number {
    background: var(--coral);
    color: white;
}

.progress-step.completed {
    color: var(--teal);
}

.progress-step.completed .step-number {
    background: var(--teal);
    color: white;
}

.progress-step.completed::after {
    background: var(--teal);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-brand h3 span {
    color: var(--coral);
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 1rem;
    color: rgba(255,255,255,0.6);
}

.footer-links h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

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

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--coral);
    color: white;
    transform: translateY(-2px);
}

/* Utility Classes */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .progress-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .progress-step::after {
        display: none;
    }
}
