/* ========================================
   1. IMPORT VANJSKIH FONTOVA
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

/* ========================================
   2. ROOT VARIJABLE (DOSLJEDAN DIZAJN)
   ======================================== */
:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fff7ed;
    --primary-50: #fffbeb;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --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);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* ========================================
   3. OSNOVNI STILOVI
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

/* ========================================
   4. TIPOGRAFIJA
   ======================================== */
h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    margin-top: -0.75rem;
    margin-bottom: 2.5rem;
}

/* ========================================
   5. NAVIGACIJA (PROFINJENA)
   ======================================== */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 24px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.nav-links a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--gray-900);
    background: var(--gray-100);
}

.nav-links .btn-orange {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.nav-links .btn-orange:hover {
    background: var(--primary-dark);
    color: white !important;
}

.nav-links .btn-white {
    background: transparent;
    color: var(--primary) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    border: 1.5px solid var(--primary);
    font-weight: 600;
}

.nav-links .btn-white:hover {
    background: var(--primary-light);
}

/* ========================================
   6. HERO SEKCIJA (PREMIUM IZGLED)
   ======================================== */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, var(--primary-50) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Suptilni pozadinski uzorak */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary), #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--gray-200);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
}

/* ========================================
   7. SEKCIJA ZA POSLOVE I OSOBLJE
   ======================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    margin-bottom: 0;
}

.section-header .view-all {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.95rem;
    transition: gap 0.2s;
}

.section-header .view-all:hover {
    gap: 0.5rem;
}

.features, .jobs-section, .osoblje-section {
    padding: 60px 0;
}

.features {
    background: var(--white);
}

/* ========================================
   8. KARTICE (GRID I STILOVI)
   ======================================== */
.jobs-grid, .osoblje-grid, .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.job-card, .osoblje-card, .feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.25s ease;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.job-card:hover, .osoblje-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px solid var(--gray-100);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.1rem;
}

.job-card .job-header, .osoblje-card .osoblje-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.job-card .job-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gray-900);
}

.job-card .company {
    color: var(--gray-500);
    font-weight: 500;
    font-size: 0.95rem;
}

.job-card .job-meta, .osoblje-card .osoblje-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin: 0.75rem 0;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.job-card .job-meta i, .osoblje-card .osoblje-meta i {
    width: 1rem;
    color: var(--gray-400);
}

.job-card .job-price {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1.1rem;
}

.job-card .job-price small {
    font-weight: 400;
    color: var(--gray-500);
    font-size: 0.8rem;
}

/* ========================================
   9. BADGEVI (OZNAKE)
   ======================================== */
.badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-premium {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
}

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

.badge-outline {
    background: transparent;
    border: 1.5px solid var(--gray-300);
    color: var(--gray-600);
}

/* ========================================
   10. FORME (PROFINJENE)
   ======================================== */
.form-card {
    max-width: 640px;
    margin: 2.5rem auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.form-card h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.form-card .form-subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

/* ========================================
   11. PROGRESS BAR
   ======================================== */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: 50px;
    overflow: hidden;
    margin: 0.75rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #f59e0b);
    border-radius: 50px;
    transition: width 0.5s ease;
}

/* ========================================
   12. ADMIN PANEL
   ======================================== */
.admin-wrapper {
    display: flex;
    min-height: calc(100vh - 70px);
}

.admin-sidebar {
    width: 260px;
    background: var(--gray-900);
    color: var(--white);
    padding: 2rem 1.25rem;
    flex-shrink: 0;
}

.admin-sidebar .logo {
    color: white;
    margin-bottom: 2rem;
}

.admin-sidebar a {
    color: var(--gray-300);
    text-decoration: none;
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius);
    transition: all 0.2s;
    font-weight: 500;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.admin-content {
    flex: 1;
    padding: 2.5rem;
    background: var(--gray-50);
}

/* ========================================
   13. RESPONSIVE DIZAJN
   ======================================== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 16px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }
    
    .nav-links a {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .hero {
        padding: 60px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .jobs-grid, .osoblje-grid, .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-card {
        padding: 1.5rem;
        margin: 1.5rem 1rem;
    }
    
    .admin-wrapper {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        min-height: auto;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}