/**
 * Aspired Careers - Custom Elementor Styling
 * 
 * This CSS file provides advanced styling and effects that complement
 * the Elementor templates for the Aspired Careers website.
 * 
 * Include this file in your theme or add to Elementor's custom CSS section.
 */

/* =====================================
   GLOBAL VARIABLES & RESET
   ===================================== */

:root {
    --aspired-primary: #4CAF50;
    --aspired-primary-dark: #388E3C;
    --aspired-secondary: #1B365D;
    --aspired-secondary-light: #2C5282;
    --aspired-accent: #FFC107;
    --aspired-text-primary: #1A202C;
    --aspired-text-secondary: #4A5568;
    --aspired-text-muted: #999999;
    --aspired-background-light: #FAFAFA;
    --aspired-background-white: #FFFFFF;
    --aspired-border-light: #E2E8F0;
    --aspired-border-muted: #CBD5E0;
    
    /* Glass morphism colors */
    --aspired-glass-bg: rgba(255, 255, 255, 0.1);
    --aspired-glass-border: rgba(255, 255, 255, 0.2);
    --aspired-glass-shadow: rgba(0, 0, 0, 0.1);
    
    /* Animation variables */
    --aspired-transition: all 0.3s ease;
    --aspired-transition-fast: all 0.2s ease;
    --aspired-animation-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* =====================================
   ENHANCED BUTTON STYLES
   ===================================== */

.elementor-button:hover,
.aspired-button:hover,
.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3) !important;
    transition: var(--aspired-transition) !important;
}

.elementor-button.elementor-button-success {
    background: var(--aspired-primary) !important;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2) !important;
}

.elementor-button.elementor-button-success:hover {
    background: var(--aspired-primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4) !important;
}

/* Custom button variants */
.aspired-button-outline {
    background: transparent !important;
    color: var(--aspired-primary) !important;
    border: 2px solid var(--aspired-primary) !important;
    transition: var(--aspired-transition) !important;
}

.aspired-button-outline:hover {
    background: var(--aspired-primary) !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

/* =====================================
   GLASS MORPHISM EFFECTS
   ===================================== */

.aspired-glass {
    background: var(--aspired-glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--aspired-glass-border) !important;
    box-shadow: 0 8px 32px var(--aspired-glass-shadow) !important;
}

.aspired-glass-card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    transition: var(--aspired-transition) !important;
}

.aspired-glass-card:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-4px) !important;
}

/* =====================================
   TESTIMONIALS SECTION ENHANCEMENTS
   ===================================== */

/* Background patterns for testimonials */
.aspired-testimonials-bg::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: var(--aspired-primary);
    border-radius: 50%;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

.aspired-testimonials-bg::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 150px;
    height: 150px;
    background: var(--aspired-accent);
    border-radius: 50%;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

/* Testimonial carousel enhancements */
.elementor-testimonial-carousel .slick-slide {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    padding: 32px !important;
    margin: 0 16px !important;
    transition: var(--aspired-transition) !important;
}

.elementor-testimonial-carousel .slick-slide:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-2px) !important;
}

.elementor-testimonial-carousel .slick-dots {
    margin-top: 30px !important;
}

.elementor-testimonial-carousel .slick-dots li button:before {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 12px !important;
}

.elementor-testimonial-carousel .slick-dots li.slick-active button:before {
    color: var(--aspired-primary) !important;
}

/* =====================================
   JOB CARD ENHANCEMENTS
   ===================================== */

.aspired-job-card {
    transition: var(--aspired-transition) !important;
    border: 1px solid var(--aspired-border-light) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.aspired-job-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    border-color: var(--aspired-border-muted) !important;
}

/* Job badges */
.job-badge-featured {
    background: var(--aspired-primary) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 24px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    display: inline-block !important;
}

.job-badge-new {
    background: var(--aspired-accent) !important;
    color: var(--aspired-text-primary) !important;
    padding: 8px 16px !important;
    border-radius: 24px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    display: inline-block !important;
}

.job-badge-urgent {
    background: var(--aspired-secondary) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 24px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    display: inline-block !important;
}

.job-salary-badge {
    background: #FFF3CD !important;
    color: #856404 !important;
    padding: 4px 12px !important;
    border-radius: 12px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    display: inline-block !important;
}

/* Job tags styling */
.aspired-job-tag {
    background: #F7FAFC !important;
    padding: 6px 12px !important;
    border-radius: 16px !important;
    font-size: 0.8rem !important;
    color: var(--aspired-text-secondary) !important;
    white-space: nowrap !important;
    transition: var(--aspired-transition-fast) !important;
}

.aspired-job-tag:hover {
    background: #EDF2F7 !important;
    transform: translateY(-1px) !important;
    color: var(--aspired-text-primary) !important;
}

/* =====================================
   ICON BOX ENHANCEMENTS
   ===================================== */

.elementor-icon-box-wrapper:hover {
    transform: translateY(-2px) !important;
    transition: var(--aspired-transition) !important;
}

.elementor-icon-box-wrapper .elementor-icon-box-content .elementor-icon-box-title {
    transition: var(--aspired-transition) !important;
}

/* .elementor-icon-box-wrapper:not(.normal-colours):hover .elementor-icon-box-content .elementor-icon-box-title {
    color: var(--aspired-primary) !important;
} */

/* =====================================
   FORM ENHANCEMENTS
   ===================================== */

.elementor-field-group input:focus,
.elementor-field-group select:focus,
.elementor-field-group textarea:focus {
    outline: none !important;
    border-color: var(--aspired-primary) !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1) !important;
    transition: var(--aspired-transition-fast) !important;
}

/* =====================================
   SECTION DECORATIVE ELEMENTS
   ===================================== */

/* Green accent lines */
.aspired-accent-line {
    width: 48px !important;
    height: 4px !important;
    background: var(--aspired-primary) !important;
    border-radius: 2px !important;
    margin-bottom: 24px !important;
}

.aspired-accent-line-vertical {
    width: 8px !important;
    height: 60px !important;
    background: var(--aspired-primary) !important;
    position: absolute !important;
    left: 0 !important;
    top: 32px !important;
    border-radius: 0 4px 4px 0 !important;
}

/* =====================================
   ANIMATION CLASSES
   ===================================== */

.aspired-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.aspired-fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

.aspired-slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.aspired-slide-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.aspired-slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.aspired-slide-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.aspired-scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s var(--aspired-animation-bounce);
}

.aspired-scale-in.animate {
    opacity: 1;
    transform: scale(1);
}

/* =====================================
   RESPONSIVE ADJUSTMENTS
   ===================================== */

@media (max-width: 768px) {
    .aspired-testimonials-bg::before,
    .aspired-testimonials-bg::after {
        display: none;
    }
    
    .elementor-testimonial-carousel .slick-slide {
        margin: 0 8px !important;
        padding: 24px !important;
    }
    
    .aspired-job-card {
        margin-bottom: 16px;
    }
    
    .job-badge-featured,
    .job-badge-new,
    .job-badge-urgent {
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
    }
    
    .job-salary-badge {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
    }
}

@media (max-width: 480px) {
    .aspired-job-tag {
        font-size: 0.75rem !important;
        padding: 4px 8px !important;
    }
    
    .aspired-accent-line {
        width: 32px !important;
        height: 3px !important;
    }
    
    .aspired-accent-line-vertical {
        width: 6px !important;
        height: 40px !important;
    }
}

/* =====================================
   ACCESSIBILITY ENHANCEMENTS
   ===================================== */

/* Focus indicators */
.elementor-button:focus,
.aspired-button:focus {
    outline: 2px solid var(--aspired-primary) !important;
    outline-offset: 2px !important;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
    .aspired-glass,
    .aspired-glass-card {
        background: rgba(255, 255, 255, 0.9) !important;
        color: var(--aspired-text-primary) !important;
        border-color: var(--aspired-text-primary) !important;
    }
}

/* =====================================
   ELEMENTOR WIDGET SPECIFIC OVERRIDES
   ===================================== */

/* Heading widget enhancements */
.elementor-heading-title {
    position: relative;
}

/* Text editor widget link styling */
.elementor-text-editor a {
    color: var(--aspired-primary) !important;
    text-decoration: none !important;
    transition: var(--aspired-transition-fast) !important;
}

.elementor-text-editor a:hover {
    color: var(--aspired-primary-dark) !important;
    text-decoration: underline !important;
}

/* Image widget hover effects */
.elementor-image img {
    transition: var(--aspired-transition) !important;
}

.elementor-image:hover img {
    transform: scale(1.02) !important;
}

/* =====================================
   CUSTOM UTILITIES
   ===================================== */

.aspired-text-gradient {
    background: linear-gradient(135deg, var(--aspired-primary), var(--aspired-primary-dark)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.aspired-shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.aspired-shadow-medium {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.aspired-shadow-strong {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Border utilities */
.aspired-border-primary {
    border-color: var(--aspired-primary) !important;
}

.aspired-border-left-primary {
    border-left: 4px solid var(--aspired-primary) !important;
}

.aspired-border-top-primary {
    border-top: 4px solid var(--aspired-primary) !important;
}

/* Background utilities */
.aspired-bg-gradient {
    background: linear-gradient(135deg, var(--aspired-primary), var(--aspired-primary-dark)) !important;
}

.aspired-bg-glass {
    background: var(--aspired-glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* =====================================
   PRINT STYLES
   ===================================== */

@media print {
    .aspired-glass,
    .aspired-glass-card {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    .elementor-button,
    .aspired-button {
        background: white !important;
        color: black !important;
        border: 1px solid black !important;
    }
}

/* End of custom CSS */