/* ============================================
   ОСНОВНЫЕ СТИЛИ - ГАРМОНИЗАЦИЯ
   ============================================ */

/* Убираем подчёркивания */
a {
    text-decoration: none !important;
}

a:hover {
    text-decoration: none !important;
}

/* Navbar */
.navbar {
    background: white !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #f0f0f0;
    padding: 0.5rem 0;
    min-height: 60px;
}

.navbar-brand.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0ABF53 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 2rem;
}

.navbar-brand.logo i {
    color: #0ABF53;
    font-size: 1.5rem;
}

.nav-link {
    color: #404040 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1rem !important;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: #0ABF53 !important;
    background: #E8F8EC;
}

.nav-link.active {
    color: #0ABF53 !important;
    background: #E8F8EC;
    font-weight: 600;
}

/* Search */
.search-input {
    border: 2px solid #E8E8E8;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    height: 42px;
    transition: all 0.25s ease;
}

.search-input:focus {
    border-color: #0ABF53;
    box-shadow: 0 0 0 4px rgba(10, 191, 83, 0.1);
}

.search-btn {
    height: 42px;
    padding: 0 1.25rem;
    border-radius: 8px;
    background: #0ABF53;
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.25s ease;
}

.search-btn:hover {
    background: #09A349;
    transform: translateY(-1px);
}

/* User avatar */
.user-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #E8E8E8;
    transition: all 0.25s ease;
}

.user-avatar:hover {
    border-color: #0ABF53;
    transform: scale(1.05);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.online-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.online-status.online {
    background-color: #0ABF53;
    box-shadow: 0 0 0 2px rgba(10, 191, 83, 0.2);
    animation: pulse 2s infinite;
}

.online-status.offline {
    background-color: #8E8E8E;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(10, 191, 83, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(10, 191, 83, 0); }
    100% { box-shadow: 0 0 0 0 rgba(10, 191, 83, 0); }
}

/* Role switcher */
.role-switch-container {
    display: flex;
    background: #fff;
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
}

.role-option {
    flex: 1;
    text-align: center;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.role-option.active {
    color: white;
}

.role-option:not(.active) {
    color: #626262;
    background: transparent;
}

.role-option:not(.active):hover {
    color: #404040;
    background: #F0F0F2;
}

.role-option.freelancer.active {
    background: linear-gradient(135deg, #0ABF53 0%, #09A349 100%);
}

.role-option.client.active {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

/* Balance */
.balance-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #E8F8EC;
    color: #0ABF53 !important;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.balance-nav-link:hover {
    background: #0ABF53;
    color: white !important;
    transform: translateY(-1px);
}

.balance-nav-amount {
    font-size: 15px;
    font-weight: 700;
}

/* Buttons */
.btn-gradient {
    background: linear-gradient(135deg, #0ABF53 0%, #09A349 100%) !important;
    border: none !important;
    color: white !important;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    transition: all 0.25s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 191, 83, 0.3);
}

/* Cards */
.card {
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    box-shadow: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: #0ABF53;
}

.card-body {
    padding: 1.5rem;
}

/* Service cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
}

.service-card .card-img-top {
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .card-img-top {
    transform: scale(1.08);
}

/* Category cards */
.category-card {
    transition: all 0.3s ease;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
}

.category-card:hover {
    border-color: #0ABF53;
    box-shadow: 0 8px 24px rgba(10, 191, 83, 0.15);
    transform: translateY(-4px);
}

.category-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #0ABF53 0%, #09A349 100%);
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Freelancer cards */
.freelancer-card {
    transition: all 0.3s ease;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
}

.freelancer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: #0ABF53;
}

/* Hover lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15) !important;
}

/* Footer */
.footer-links a {
    color: #626262;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.footer-links a:hover {
    color: #0ABF53;
    padding-left: 5px;
}

.footer-title {
    color: #1A1A2E;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.25s ease;
}

.social-link:hover {
    background: #0ABF53;
    color: white;
    transform: translateY(-3px);
}

/* Site Footer */
.site-footer {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0f3460 100%);
    color: white;
    margin-top: auto;
}

.site-footer .footer-title {
    color: white;
}

.site-footer .footer-title::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: #0ABF53;
    border-radius: 2px;
    margin-top: 0.75rem;
}

.site-footer .footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer .footer-links a:hover {
    color: #0ABF53;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.text-gradient {
    background: linear-gradient(90deg, #0ABF53 0%, #0D8A42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stats */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    text-align: center;
    border: 1px solid #E8E8E8;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: #0ABF53;
}

.stats-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0ABF53;
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* Reviews */
.review-card {
    transition: all 0.3s ease;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #0ABF53;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, #0ABF53 0%, #09A349 100%);
}

/* Badge styles */
.badge-hot {
    background: linear-gradient(135deg, #FF8C00 0%, #F59E0B 100%);
}

.badge-new {
    background: linear-gradient(135deg, #0ABF53 0%, #09A349 100%);
}

/* Service Card V2 */
.service-card-v2 {
    transition: all 0.35s ease;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    overflow: hidden;
}

.service-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
    border-color: #0ABF53;
}

.service-cover-v2 {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card-v2:hover .service-cover-v2 {
    transform: scale(1.08);
}

.service-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
    min-height: 2.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section .display-5 {
        font-size: 1.75rem;
    }
    
    .category-icon {
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
    }
    
    .service-cover-v2 {
        height: 140px;
    }
    
    .stats-card {
        padding: 1.25rem;
    }
    
    .stats-card .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .service-cover-v2 {
        height: 120px;
    }
    
    .service-title {
        font-size: 0.9rem;
    }
}

/* Dropdown */
.dropdown-menu {
    border: 1px solid #E8E8E8;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 0.75rem;
}

.dropdown-item {
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #E8F8EC;
    color: #0ABF53;
}

.dropdown-item i {
    color: #626262;
    width: 22px;
}

.dropdown-item:hover i {
    color: #0ABF53;
}

/* Pagination */
.pagination {
    gap: 0.5rem;
}

.page-link {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    border: 1px solid #E8E8E8;
    color: #1A1A2E;
    transition: all 0.25s ease;
}

.page-link:hover {
    background: #E8F8EC;
    border-color: #0ABF53;
    color: #0ABF53;
}

.page-item.active .page-link {
    background: #0ABF53;
    border-color: #0ABF53;
}

/* Forms */
.form-control {
    border: 2px solid #E8E8E8;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.form-control:focus {
    border-color: #0ABF53;
    box-shadow: 0 0 0 4px rgba(10, 191, 83, 0.1);
}

.form-select {
    border: 2px solid #E8E8E8;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.form-select:focus {
    border-color: #0ABF53;
    box-shadow: 0 0 0 4px rgba(10, 191, 83, 0.1);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.65rem 1.25rem;
    transition: all 0.25s ease;
}

.btn-primary {
    background: #0ABF53;
    border-color: #0ABF53;
}

.btn-primary:hover {
    background: #09A349;
    border-color: #09A349;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 191, 83, 0.3);
}

.btn-outline-primary {
    color: #0ABF53;
    border-color: #0ABF53;
}

.btn-outline-primary:hover {
    background: #0ABF53;
    border-color: #0ABF53;
}

/* Badge */
.badge {
    border-radius: 20px;
    padding: 0.35rem 0.85rem;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.4s ease forwards;
}
