/* Custom CSS for Yaparim */

/* Header Navigation - Clean with Brand Color Underline */
#navigation ul li {
    position: relative;
}

#navigation ul li > a.current,
#navigation ul li > a:hover {
    color: #4f46e5;
    position: relative;
}

#navigation ul li > a.current::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 15px;
    right: 15px;
    height: 3px;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    border-radius: 3px 3px 0 0;
}

#navigation ul li > a {
    transition: all 0.3s;
    padding: 15px 20px;
    font-weight: 500;
    display: block;
}

#navigation ul li > a:hover {
    background: rgba(79, 70, 229, 0.05);
}

/* Header Icon Links */
.header-icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    color: #666;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s;
}

#header .right-side .language-switcher {
    /* Matches header height and places the toggle before the profile dropdown */
    display: flex;
    align-items: center;
    height: 100%;
    float: left;
    margin-right: 10px;
}

#header .right-side .language-switcher-link {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(79, 70, 229, 0.18);
    transition: all 0.2s ease;
}

#header .right-side .language-switcher-link:hover {
    background: #3730a3;
    transform: translateY(-1px);
}

#header .right-side .language-switcher-flag {
    width: 20px;
    height: auto;
    border-radius: 3px;
    display: block;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

#header .right-side .language-switcher-label {
    white-space: nowrap;
}

.header-icon-link:hover {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
}

.header-icon-link.active {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
}

.header-icon-link i {
    font-size: 20px;
}

.header-icon-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff4757;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}

/* Clean Header Styling */
#header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#header-container {
    border-bottom: 1px solid #e0e0e0;
}

/* Simple Line-Style Icons */
.header-icon-link i,
.mobile-nav-item i {
    font-weight: 300;
    stroke-width: 1.5;
}

/* Custom CSS for Yaparim */

/* Hero Section Redesign */
.hero-section-redesigned {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section-redesigned::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,200 600,300 T1200,300" stroke="rgba(79,70,229,0.1)" stroke-width="2" fill="none"/><circle cx="200" cy="150" r="8" fill="rgba(79,70,229,0.2)"/><circle cx="800" cy="250" r="6" fill="rgba(79,70,229,0.2)"/><circle cx="1000" cy="400" r="10" fill="rgba(79,70,229,0.2)"/></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.hero-section-redesigned .container {
    position: relative;
    z-index: 111;
}

.hero-search-form {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.hero-search-visible {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.hero-search-field {
    display: flex;
    flex-direction: column;
}

.hero-search-field .field-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.hero-search-field input,
.hero-search-field select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.hero-search-field input:focus,
.hero-search-field select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.hero-search-field .input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.hero-search-field .input-with-icon input {
    padding-left: 42px;
    padding-right: 54px;
    height: 48px;
    line-height: 48px;
}

.hero-search-field .input-with-icon > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-80%);
    color: #999;
    font-size: 20px;
    line-height: 1;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.pin-location-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-70%);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 3;
    line-height: 0;
}

.pin-location-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #fff;
}

.pin-location-btn i {
    font-size: 16px;
    color: #666;
    position: static;
    transform: none;
    line-height: 1;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pin-location-btn:hover i {
    color: #fff;
}

.hero-search-expandable {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    animation: slideDown 0.3s ease-out;
}

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

.hero-date-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.price-type-toggle {
    display: flex;
    gap: 10px;
    background: #f5f5f5;
    padding: 4px;
    border-radius: 8px;
}

.price-type-toggle input[type="radio"] {
    display: none;
}

.price-type-toggle label {
    flex: 1;
    padding: 10px 20px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: #666;
}

.price-type-toggle input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #fff;
}

.hero-search-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-search-btn {
    flex: 1;
    min-width: 150px;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
}

.hero-more-filters-btn {
    padding: 14px 20px;
    background: #f5f5f5;
    border: none;
    color: #666;
}

.hero-more-filters-btn:hover {
    background: #e0e0e0;
}

.hero-cta-btn {
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-search-form {
        padding: 20px;
    }
    
    .hero-search-visible {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hero-search-expandable {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hero-search-actions {
        flex-direction: column;
    }
    
    .hero-search-btn,
    .hero-more-filters-btn {
        width: 100%;
    }
    
    .banner-headline h3 {
        font-size: 24px;
        line-height: 1.4;
    }
    
    .banner-headline h3 strong {
        font-size: 28px;
    }
}

/* Quick Filter Chips */
.intro-search-chips {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.chip {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.chip {
    cursor: pointer;
}

.chip:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Disable slide-out button animation site-wide */
.button.button-slide-out {
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.button.button-slide-out span {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
}

.button.button-slide-out i {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    height: auto !important;
    margin-left: 8px;
    vertical-align: middle;
    transition: none !important;
}

.button.button-slide-out:hover span,
.button.button-slide-out:hover i {
    transform: none !important;
    opacity: 1 !important;
}

.button.button-slide-out:hover {
    background-color: #58595d;
    box-shadow: 0 6px 16px rgba(102, 103, 107, 0.2);
}

/* Disable sliding-icon animation site-wide (used by Post a Task) */
.button-sliding-icon i,
.button.button-sliding-icon i {
    position: static !important;
    left: auto !important;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
    margin-left: 8px;
    vertical-align: middle;
}

.button-sliding-icon:hover i,
.button.button-sliding-icon:hover i {
    transform: none !important;
    opacity: 1 !important;
    left: auto !important;
}

.button.button-sliding-icon,
a.button.button-sliding-icon,
button.button.button-sliding-icon {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.button.button-sliding-icon:hover,
a.button.button-sliding-icon:hover,
button.button.button-sliding-icon:hover {
    background-color: #58595d;
    box-shadow: 0 6px 16px rgba(102, 103, 107, 0.2);
}

.chip.active {
    background: rgba(79, 70, 229, 0.2);
    color: #4f46e5;
    border: 1px solid rgba(79, 70, 229, 0.4);
}

/* Mobile Bottom Bar CTA */
.mobile-bottom-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 15px;
    z-index: 999;
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-cta {
        display: block;
    }
    
    body {
        padding-bottom: 70px;
    }
}

.mobile-bottom-cta .button {
    width: 100%;
    margin: 0;
    justify-content: center;
    display: flex;
    align-items: center;
}

/* Urgent Task Tag */
.task-listing-tag.urgent {
    background-color: #ff4757;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

/* Icon Box Animations */
.icon-box-2 {
    text-align: center;
    transition: transform 0.3s;
}

.icon-box-2:hover {
    transform: translateY(-10px);
}

.icon-box-circle {
    margin: 0 auto 30px;
}

/* Testimonials Enhancement */
.testimonial-box {
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.testimonial-avatar {
    margin: 0 auto 20px;
}

/* Task Cards Enhancement */
.task-listing {
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.task-listing:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Verified Badge */
.verified-badge-with-title {
    background: #28a745;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Category Box Enhancement */
.category-box {
    transition: all 0.3s;
}

.category-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Popular Categories Layout */
#popular-categories .categories-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

#popular-categories .category-box {
    /* style.css sets flex-basis via flexbox; grid layout ignores it, but override to be safe */
    flex: none !important;
    max-width: none !important;
}

@media (max-width: 768px) {
    #popular-categories .categories-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    #popular-categories .categories-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Dashboard Sidebar Active State */
.dashboard-nav ul li.active a {
    background: #f0f0f0;
    color: #333;
    font-weight: 600;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .banner-headline h3 {
        font-size: 24px;
    }
    
    .section-headline h3 {
        font-size: 22px;
    }
}

/* Statistics Enhancement */
.fun-facts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.fun-fact {
    flex: 1;
    min-width: 200px;
}

/* Dashboard Trust Metrics */
.trust-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.trust-metric-card {
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 12px;
    padding: 24px 20px;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.trust-metric-card .fun-fact-text h4 {
    color: #4f46e5;
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 6px;
}

.trust-metric-card .fun-fact-text span {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
}

.trust-metric-card .fun-fact-text p {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
}

.trust-metric-card .fun-fact-icon {
    color: #4f46e5;
    background: #eef2ff;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-metric-card .fun-fact-icon i {
    margin: 0;
    font-size: 22px;
    line-height: 1;
}

@media (max-width: 992px) {
    .trust-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .trust-metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Bid Cards */
.bid {
    display: flex;
    align-items: center;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.bid:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Share Buttons */
.share-buttons-content {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
}

/* Task Tags */
.task-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.task-tags span {
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
}


.hero-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 11;
}

.button.big i{
    margin-right: 10px;
}