/* Global Styles */
:root {
    --primary-color: #10B981;
    --secondary-color: #059669;
    --text-color: #1F2937;
    --light-gray: #F3F4F6;
    --border-color: #E5E7EB;
    --main-header-height: 64px;
    --total-header-height: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--main-header-height);
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(22, 101, 52, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(22, 101, 52, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--main-header-height);
    z-index: 50;
    background: linear-gradient(to bottom, #f0fdf4, white);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #052e16 0%, #064e3b 100%);
    }

    body::before {
        background-image: 
            radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(34, 197, 94, 0.05) 0%, transparent 50%);
    }

    header {
        background: linear-gradient(to bottom, #052e16, #064e3b);
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.svg') repeat;
    opacity: 0.1;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Job Filters */
.job-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.filter-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: white;
    color: var(--text-color);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.filter-actions {
    display: flex;
    gap: 1rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.875rem;
}

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

.filter-btn-primary:hover {
    background-color: var(--secondary-color);
}

.filter-btn-secondary {
    background-color: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.filter-btn-secondary:hover {
    background-color: var(--light-gray);
}

/* Jobs Container */
.jobs-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.job-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.vacancy-design {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.job-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.company-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.company-logo {
    width: 3rem;
    height: 3rem;
    background-color: var(--light-gray);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.company-name {
    font-weight: 500;
    color: var(--text-color);
}

.company-meta {
    font-size: 0.875rem;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.company-type {
    color: var(--primary-color);
    font-weight: 500;
}

.job-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 1rem;
}

.job-location svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary-color);
}

.job-description {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.job-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.job-salary {
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.job-salary i {
    font-size: 1rem;
}

.job-date {
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.job-date i {
    font-size: 1rem;
}

/* Features Section */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
    }

    .jobs-container {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* Form Styles */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Toast Notifications */
.toastify {
    border-radius: 0.5rem !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Search Suggestions */
#searchSuggestions {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestion-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.suggestion-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

.alert i {
    font-size: 1.25rem;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 64px);
    background-color: var(--light-gray);
    padding-bottom: 4rem;
}

/* Footer */
.footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: #6B7280;
    font-size: 0.875rem;
} 