/* Modern Design System - Inspired by v0 template */

:root {
    /* Colors - Modern palette */
    --background: #fafafa;
    --foreground: #1a1a1a;
    --card: #ffffff;
    --card-foreground: #1a1a1a;
    --primary: #3b4f6b;
    --primary-foreground: #ffffff;
    --secondary: #f3f4f6;
    --secondary-foreground: #1a1a1a;
    --muted: #f3f4f6;
    --muted-foreground: #6b7280;
    --accent: #f59e0b;
    --accent-foreground: #ffffff;
    --border: #e5e7eb;
    --input: #e5e7eb;
    --ring: #3b4f6b;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Spacing */
    --radius: 0.5rem;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

/* Base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Modern Typography */
.text-balance {
    text-wrap: balance;
    /* Fallback for browsers that don't support text-wrap */
    max-width: 100%;
}

@supports not (text-wrap: balance) {
    .text-balance {
        /* Fallback for older browsers */
        text-align: center;
    }
}

.leading-relaxed {
    line-height: 1.75;
}

.leading-tight {
    line-height: 1.25;
}

/* Modern Landing Page Styles */
.modern-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 2rem;
    border-radius: var(--radius);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.modern-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.1) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 4rem 4rem;
    opacity: 0.3;
    z-index: 0;
}

.modern-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-badge {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
}

.hero-badge-text {
    color: white;
}

.hero-title {
    color: white;
    max-width: 900px;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-description {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-btn-primary {
    background: white;
    color: #667eea;
}

.hero-btn-primary:hover {
    background: #f0f0f0;
    color: #667eea;
}

.hero-btn-outline {
    border-color: white;
    color: white;
}

.hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modern-cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cta-title {
    color: white;
    font-size: clamp(1.875rem, 4vw, 3rem);
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pulse-dot {
    height: 0.5rem;
    width: 0.5rem;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Modern Header/Navigation */
.modern-header {
    border-bottom: 1px solid var(--border);
    background-color: var(--card);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.modern-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modern-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    text-decoration: none;
}

.modern-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    background-color: var(--primary);
    color: var(--primary-foreground);
}

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

.modern-nav a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.modern-nav a:hover {
    color: var(--foreground);
}

.modern-nav a.active {
    color: var(--primary);
    font-weight: 600;
}

.modern-nav-actions .modern-user-name {
    display: none; /* Hidden by default, can be shown via media query if needed */
}

@media (min-width: 1024px) {
    .modern-nav-actions .modern-user-name {
        display: inline; /* Show on larger screens if desired */
    }
}

/* Modern Card Styles */
.modern-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modern-card-header {
    margin-bottom: 1rem;
}

.modern-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--card-foreground);
    margin: 0 0 0.5rem 0;
}

.modern-card-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin: 0;
}

/* Modern Button Styles */
.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

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

.modern-btn-primary:hover {
    background-color: #2d3d54;
    transform: translateY(-1px);
}

.modern-btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.modern-btn-secondary:hover {
    background-color: #e5e7eb;
}

.modern-btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}

.modern-btn-outline:hover {
    background-color: var(--secondary);
}

.modern-btn-ghost {
    background-color: transparent;
    color: var(--muted-foreground);
}

.modern-btn-ghost:hover {
    background-color: var(--secondary);
    color: var(--foreground);
}

.modern-btn-danger {
    background-color: transparent;
    color: var(--error);
}

.modern-btn-danger:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.modern-btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.modern-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

/* Modern Badge Styles */
.modern-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.modern-badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.modern-badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.modern-badge-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.modern-badge-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.modern-badge-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

/* Modern Grid Layouts */
.modern-grid {
    display: grid;
    gap: 1.5rem;
}

.modern-grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.modern-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modern-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.modern-grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

@media (min-width: 769px) and (max-width: 1024px) {
    .modern-grid-cols-3,
    .modern-grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Modern Container */
.modern-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Modern Section */
.modern-section {
    padding: 5rem 0;
}

.modern-section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.modern-section-description {
    text-align: center;
    color: var(--muted-foreground);
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 0 auto 3rem;
}

/* Modern Input Styles */
.modern-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--input);
    border-radius: var(--radius);
    background-color: var(--card);
    color: var(--foreground);
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modern-input:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgba(59, 79, 107, 0.1);
}

.modern-input::placeholder {
    color: var(--muted-foreground);
}

/* Modern Icon Container */
.modern-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.modern-icon-container-primary {
    background-color: rgba(59, 79, 107, 0.1);
    color: var(--primary);
}

.modern-icon-container-accent {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--accent);
}

/* Modern Progress Bar */
.modern-progress {
    width: 100%;
    height: 0.5rem;
    background-color: var(--secondary);
    border-radius: 9999px;
    overflow: hidden;
}

.modern-progress-bar {
    height: 100%;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

/* Modern Feature Icons */
.modern-feature-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Modern Job Card Specific */
.modern-job-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modern-job-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modern-job-card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.modern-job-card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background-color: transparent;
}

/* Info Item Styling */
.modern-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.modern-info-item svg {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.pt-3 { padding-top: 0.75rem; }
.pb-3 { padding-bottom: 0.75rem; }

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-muted {
    color: var(--muted-foreground);
}

.text-success {
    color: var(--success);
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.border-t {
    border-top: 1px solid var(--border);
}

.rounded {
    border-radius: var(--radius);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Override MudBlazor when modern classes are used */
.modern-override .mud-appbar,
.modern-override .mud-drawer,
.modern-override .mud-main-content {
    display: none;
}
