/**
 * Jobify Ads Pro Custom Styles
 *
 * @package Jobify
 */

/* ================================
   AD OPTIMIZATION
   ================================ */

/* Ad Container Styles */
.ad-slot {
    transition: all 0.3s ease;
}

.ad-slot:hover {
    border-color: var(--primary-light);
}

/* Responsive Ad Sizes */
.ad-responsive {
    width: 100%;
    height: auto;
    min-height: 90px;
}

/* Ad Label Styling */
.ad-slot-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    margin-bottom: 4px;
    text-align: center;
}

/* ================================
   MOBILE MENU
   ================================ */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-700);
    padding: 8px;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 20px;
        z-index: 99;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--gray-100);
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 0;
    }
}

/* ================================
   PAGINATION
   ================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-700);
    font-weight: 500;
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

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

/* ================================
   WIDGET STYLES
   ================================ */
.widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

/* ================================
   FORM STATES
   ================================ */
.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--danger);
    background: #fef2f2;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.4s ease;
}

/* ================================
   LOADING STATES
   ================================ */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================================
   NOTIFICATIONS
   ================================ */
.notification {
    position: fixed;
    top: 90px;
    right: 20px;
    padding: 16px 24px;
    border-radius: var(--radius);
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.notification-success {
    background: var(--success);
}

.notification-error {
    background: var(--danger);
}

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

/* ================================
   WORDPRESS ALIGNMENT
   ================================ */
.alignleft {
    float: left;
    margin-right: 24px;
    margin-bottom: 16px;
}

.alignright {
    float: right;
    margin-left: 24px;
    margin-bottom: 16px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   SCREEN READER
   ================================ */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
    .site-header,
    .site-footer,
    .ad-slot,
    .job-actions,
    .ad-sticky-footer {
        display: none !important;
    }
    
    .job-content-wrap {
        display: block;
    }
    
    .job-sidebar {
        page-break-before: always;
    }
}

/* ================================
   ACCESSIBILITY
   ================================ */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ================================
   DARK MODE SUPPORT (Optional)
   ================================ */
@media (prefers-color-scheme: dark) {
    :root {
        --gray-50: #0f172a;
        --gray-100: #1e293b;
        --white: #1e293b;
        --gray-900: #f1f5f9;
        --gray-700: #cbd5e1;
    }
}
