/* public/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Brand New Identity */
    --primary: #F26222;
    --primary-hover: #d9541a;
    --primary-light: #fff5f0;
    --secondary: #64748b;
    --secondary-hover: #475569;

    --bg-color: #fff;
    --card-bg: #ffffff;
    --text-main: #1E2126;
    --text-muted: #475569;
    --text-light: #94a3b8;

    --border: #e2e8f0;
    --border-hover: #cbd5e1;

    --danger: #ef4444;
    --danger-light: #fef2f2;
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fffbeb;

    /* Shadows & Elevation */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Spacing System */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
}

/* Base Styles - Mobile First */
* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    line-height: 1.5;
    padding-bottom: 70px; /* Space for bottom nav */
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

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

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

/* Typography */
h1, h2, h3, h4, h5 {
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 8vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 5vw, 2.5rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 700; }

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

/* Navigation - Redesigned */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

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

.nav-links {
    display: none; /* Hidden on mobile by default */
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: var(--space-xs);
        align-items: center;
    }
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    flex-shrink: 0;
    color: var(--text-main);
}

.logo span { color: var(--primary); }

/* Visibility Utilities */
.hidden-mobile {
    display: none !important;
}

@media (min-width: 768px) {
    .hidden-mobile {
        display: flex !important;
    }
    .hidden-desktop {
        display: none !important;
    }
}

/* Global Layout Utilities */
.sidebar-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 1024px) {
    .sidebar-layout {
        grid-template-columns: 320px 1fr;
    }
}

.card-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
}

@media (max-width: 640px) {
    .card-gallery {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* Auth Pages */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
}

.auth-card {
    width: 100%;
    max-width: 440px;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    z-index: 1001;
    padding: 0.5rem;
    top: 80%;
    right: 0;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: var(--bg-color);
    color: var(--primary);
}

.nav-item {
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-item:hover {
    color: var(--primary);
}

/* Bottom Navigation - Mobile Only */
.bottom-nav {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
    z-index: 2000;
}

@media (min-width: 768px) {
    .bottom-nav { display: none; }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    gap: 4px;
    opacity: 0.6;
}

.bottom-nav-item.active { opacity: 1; color: var(--primary); }
.bottom-nav-item i { font-size: 1.25rem; }

/* Cards & Components */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9375rem;
    border: 2px solid transparent;
    transition: var(--transition);
    width: 100%; /* Full width on mobile */
}

@media (min-width: 768px) {
    .btn { width: auto; }
}

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

.btn-primary:active { transform: scale(0.95); }

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

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Grids */
.grid {
    display: grid;
    gap: var(--space-md);
}

.grid-cols-1 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.freelancer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .freelancer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .freelancer-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Hero Optimization */
.hero {
    padding: var(--space-2xl) 0;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

@media (min-width: 768px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* Section Coloring for Hierarchy */
section:nth-of-type(even) {
    background-color: white;
}
section:nth-of-type(odd) {
    background-color: var(--bg-color);
}

/* Badges for Conversion */
.badge-hot {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.badge-verified {
    background: var(--success-light);
    color: var(--success);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}