/**
 * YOL HR Agency - Responsive Styles
 * Breakpoints and Media Query Utilities
 */

/* ============================================
   Additional Responsive Components
   ============================================ */

/* Page Header Component */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: var(--space-3xl) 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

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

.page-header h1 {
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.page-header p {
    color: var(--gray-300);
    font-size: 1.125rem;
    margin: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
}

.breadcrumb a {
    color: var(--gray-400);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    color: var(--gray-500);
}

.breadcrumb .current {
    color: var(--white);
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(var(--space-md) * -1);
}

.col {
    padding: 0 var(--space-md);
    flex: 1;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }

/* Vacancy Grid */
.vacancies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--accent);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--gray-600);
}

/* Contact Info Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

.contact-info-list {
    list-style: none;
}

.contact-info-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.contact-details p {
    color: var(--gray-600);
    margin: 0;
}

.contact-details a {
    color: var(--primary);
}

/* About Page Sections */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    display: block;
}

.about-text h2 {
    margin-bottom: var(--space-lg);
}

.about-text p {
    color: var(--gray-600);
    margin-bottom: var(--space-md);
}

.about-list {
    list-style: none;
    margin: var(--space-lg) 0;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
}

.about-list li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.team-card {
    text-align: center;
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin: 0 auto var(--space-md);
    border: 4px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.team-card h4 {
    margin-bottom: var(--space-xs);
}

.team-card p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin: 0;
}

/* Services Page */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.service-card {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-xl);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--gray-900);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.service-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.service-content p {
    color: var(--gray-600);
    margin-bottom: var(--space-md);
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Employers Page */
.employers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.employer-card {
    text-align: center;
    padding: var(--space-xl);
}

.employer-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto var(--space-md);
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-base);
}

.employer-card:hover .employer-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.employer-card h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.employer-card p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: var(--space-3xl) 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.cta-section p {
    color: var(--gray-300);
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-700);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.pagination a:hover {
    background: var(--primary);
    color: var(--white);
}

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

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   Tablet Breakpoint
   ============================================ */
@media (max-width: 992px) {
    .vacancies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .employers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .col-4, .col-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* ============================================
   Mobile Breakpoint
   ============================================ */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
        padding: 80px 20px 20px;
        transition: left 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav a {
        padding: 15px 20px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-radius: 0;
    }
    
    .main-nav .nav-cta {
        margin-top: 20px;
        text-align: center;
        border-radius: var(--radius-md);
    }
    
    .mobile-toggle {
        display: flex !important;
        z-index: 1002;
    }
    
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    .header-top {
        display: none;
    }
    
    .logo-text h1 {
        font-size: 1.25rem;
    }
    
    .logo-text span {
        font-size: 0.65rem;
    }
    
    .page-header {
        padding: var(--space-xl) 0;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .vacancies-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    .employers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card {
        flex-direction: column;
        text-align: center;
    }
    
    .service-icon {
        margin: 0 auto;
    }
    
    .col-6, .col-4, .col-3, .col-8, .col-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .breadcrumb {
        font-size: 0.75rem;
    }
}

/* ============================================
   Small Mobile
   ============================================ */
@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .employers-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 0 0 50%;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .btn,
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
