/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Navigation */
.nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Burger Menu */
.burger-menu {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.burger-menu:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.burger-menu.active {
    background: rgba(255, 255, 255, 0.3);
}

.burger-icon {
    display: block;
    transition: transform 0.3s ease;
}

.burger-menu.active .burger-icon {
    transform: rotate(90deg);
}

/* Burger Dropdown */
.burger-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.burger-dropdown.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.burger-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.burger-content h3 {
    color: #2E7D32;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.burger-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.burger-action-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.burger-action-item:hover {
    background: rgba(76, 175, 80, 0.05);
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.burger-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.burger-text h4 {
    color: #2E7D32;
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.burger-text p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Hide debug link on mobile */
.debug-link {
    display: none;
}

@media (min-width: 768px) {
    .debug-link {
        display: inline-block;
    }
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: #4CAF50;
}

/* Language Toggle */
.lang-toggle {
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 80px;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(69, 160, 73, 0.1));
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    color: #2E7D32;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Search Container */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    margin-bottom: 1rem;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-tab {
    flex: 1;
    padding: 1rem;
    background: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.search-tab.active {
    background: #4CAF50;
    color: white;
}

.search-form {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-inputs {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-input,
.location-input {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus,
.location-input:focus {
    border-color: #4CAF50;
}

.near-me-btn {
    padding: 1rem;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.near-me-btn:hover {
    background: #4CAF50;
    color: white;
}

.search-btn {
    width: 100%;
}

/* Quick Actions */
.quick-actions {
    padding: 3rem 0;
}

.quick-actions h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #2E7D32;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.action-card h4 {
    color: #2E7D32;
    margin-bottom: 0.5rem;
}

/* Recent Posts */
.recent-posts {
    padding: 3rem 0;
    background: white;
}

.recent-posts h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #2E7D32;
}

.posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.load-more {
    display: block;
    margin: 0 auto;
}

/* Post Card Styles */
.post-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #4CAF50;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.post-header h4 {
    color: #2E7D32;
    font-size: 1.1rem;
    margin: 0;
    flex: 1;
}

.post-type {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 1rem;
}

.post-type.job_offer {
    background: #E8F5E8;
    color: #2E7D32;
}

.post-type.job_request {
    background: #FFF3E0;
    color: #F57C00;
}

.post-content {
    margin-bottom: 1rem;
}

.post-category {
    color: #888;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-style: italic;
}

.post-location {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.post-description {
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.post-remuneration {
    color: #4CAF50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.post-urgency {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.post-urgency.urgent-immediate {
    color: #d32f2f;
}

.post-urgency.urgent-high {
    color: #f57c00;
}

.post-duration {
    color: #666;
    margin-bottom: 0;
    font-size: 0.85rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.post-date {
    color: #888;
    font-size: 0.8rem;
}

.post-footer .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.no-posts {
    text-align: center;
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
    padding: 2rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

/* Form Styles */
.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: #4CAF50;
}

.form-link {
    text-align: center;
    margin-top: 1rem;
}

.form-link a {
    color: #4CAF50;
    text-decoration: none;
}

.form-link a:hover {
    text-decoration: underline;
}

/* Loading Spinner */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 2000;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contact Modal Styles */
.contact-info {
    text-align: center;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.contact-actions a {
    text-decoration: none;
    min-width: 130px;
}

.contact-note {
    color: #666;
    font-size: 0.85rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    z-index: 2000;
    animation: slideInRight 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #f44336;
}

.notification.warning {
    background: #FF9800;
    color: #333;
}

.notification.info {
    background: #2196F3;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Dashboard Styles */
.dashboard-content {
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.dashboard-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.dashboard-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.dashboard-section h4 {
    color: #2E7D32;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.profile-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.profile-info p {
    margin-bottom: 0.5rem;
}

.profile-info p:last-child {
    margin-bottom: 0;
}

.dashboard-actions,
.account-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-actions .btn,
.account-actions .btn {
    flex: 1;
    min-width: 140px;
    text-align: center;
}

.my-posts {
    max-height: 300px;
    overflow-y: auto;
}

.my-post-item {
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.my-post-item h5 {
    color: #2E7D32;
    margin-bottom: 0.5rem;
}

.my-post-item p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: #666;
}

.my-post-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #888;
}

.no-posts {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .search-inputs {
        grid-template-columns: 1fr;
    }
    
    .near-me-btn {
        justify-self: center;
    }
    
    .nav {
        gap: 0.5rem;
    }
    
    .header .container {
        flex-wrap: nowrap;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .tagline {
        display: none;
    }
    
    .burger-actions {
        grid-template-columns: 1fr;
    }
    
    .burger-action-item {
        text-align: left;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .search-form {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}