/* LegalExpert - Component Styles */

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    border-radius: 16px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--primary-color, #0066CC);
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.2) rotate(10deg);
}

.service-icon-wrapper {
    display: inline-block;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,102,204,0.1) 0%, rgba(0,102,204,0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Service Detail Card - Сучасний дизайн */
.service-detail-card {
    border-radius: 20px;
    border: 1px solid rgba(0, 102, 204, 0.1);
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15) !important;
    border-color: rgba(0, 102, 204, 0.3);
}

.service-detail-card .card-body {
    position: relative;
}

.service-detail-card h3 {
    color: #212529;
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 102, 204, 0.1);
}

/* Service Description Styles */
.service-short-description {
    transition: opacity 0.4s ease, max-height 0.4s ease, margin 0.4s ease;
    overflow: hidden;
}

.service-short-description.hidden {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0 !important;
    padding: 0;
}

.service-description-accordion .accordion-item {
    background: transparent;
    border: none;
}

.service-description-accordion .accordion-button {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 102, 204, 0.02) 100%);
    border: 1px solid rgba(0, 102, 204, 0.15);
    border-radius: 12px;
    color: #0066CC;
    font-weight: 600;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    box-shadow: none;
}

.service-description-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 102, 204, 0.05) 100%);
    color: #0052a3;
    border-color: rgba(0, 102, 204, 0.25);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.service-description-accordion .accordion-button:hover {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08) 0%, rgba(0, 102, 204, 0.04) 100%);
    border-color: rgba(0, 102, 204, 0.2);
    transform: translateY(-1px);
}

.service-description-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.15);
    border-color: rgba(0, 102, 204, 0.3);
}

.service-description-accordion .accordion-body {
    padding: 1.5rem 1.25rem;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    border: 1px solid rgba(0, 102, 204, 0.1);
    border-top: none;
}

.service-description-text,
.service-full-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #495057;
}

.service-full-description {
    animation: fadeIn 0.4s ease-in;
}

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

/* Service Info Boxes */
.service-info-box {
    transition: all 0.3s ease;
}

.service-info-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

/* What's Included List Items */
.service-detail-card ul li {
    transition: all 0.2s ease;
}

.service-detail-card ul li:hover {
    background: rgba(40, 167, 69, 0.1) !important;
    transform: translateX(5px);
    padding-left: 1rem !important;
}

/* Blog Cards */
.blog-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}

.blog-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-featured-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.category-badge {
    background: linear-gradient(135deg, #0066CC 0%, #004999 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.tag-badge {
    background: #e9ecef;
    color: #495057;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-block;
    margin: 0.2rem;
}

.tag-badge:hover {
    background: #dee2e6;
    color: #212529;
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    padding: 2rem;
    border-radius: 15px;
    height: 100%;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color, #0066CC);
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Stat Cards */
.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-color, #0066CC);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #0066CC 0%, #004999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
}

.stat-icon {
    font-size: 2.5rem;
    color: #0066CC;
    margin-bottom: 1rem;
}

/* AI Chat Widget styles moved to ai_chat_widget.css */
    align-self: flex-start;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ai-chat-input-container {
    padding: 1rem;
    background: white;
    border-top: 1px solid #dee2e6;
}

/* Modals */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 15px 15px;
}

/* Breadcrumbs */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item {
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: rgba(255,255,255,0.6);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255,255,255,0.6);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

/* Badges */
.badge {
    padding: 0.35rem 0.65rem;
    font-weight: 500;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}

.page-link:hover {
    color: #0052a3;
    background-color: #e9ecef;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    color: white;
    padding: 1.25rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    display: none;
    animation: slideUp 0.4s ease-out;
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-text h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cookie-text p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
}

.cookie-text a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-text a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    white-space: nowrap;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cookie-buttons .btn-light {
    background: white;
    color: #1a252f;
    border: none;
}

.cookie-buttons .btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cookie-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
}

.cookie-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Cookie Settings Modal */
.cookie-category {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.cookie-category:hover {
    background: #e9ecef;
}

.cookie-category strong {
    color: #212529;
    display: block;
    margin-bottom: 0.25rem;
}

.cookie-category .text-muted {
    font-size: 0.875rem;
}

/* Responsive Design for Cookie Banner */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-icon {
        font-size: 1.5rem;
    }
    
    .cookie-text {
        min-width: 100%;
        text-align: left;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-buttons .btn {
        flex: 1;
        min-width: 120px;
    }
}

/* Toast Notification Styles */
.toast-notification {
    animation: toastSlideIn 0.3s ease-out;
    border-radius: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(40, 167, 69, 0.2);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

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

/* Dark theme support for Toast */
[data-theme="dark"] .toast-notification {
    background-color: rgba(40, 167, 69, 0.9) !important;
    color: white;
    border-color: rgba(40, 167, 69, 0.4);
}

/* ============================================
   МІКРО-ВЗАЄМОДІЇ (Micro-interactions)
   ============================================ */

/* КРОК 1: Картки послуг та загальні картки */
.card,
.service-item {
    transition: all 0.3s ease;
    border-color: var(--card-border, #e9ecef);
}

.card:hover,
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
    border-color: var(--primary-color, #0066CC);
}

/* КРОК 2: Кнопки - Hover та Active ефекти */
.btn {
    transition: all 0.3s ease;
    position: relative;
}

.btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn:active {
    transform: scale(0.98) translateY(0);
    transition: transform 0.1s ease;
}

/* Специфічні стилі для різних типів кнопок */
.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-primary:active {
    background-color: #004080;
    transform: scale(0.98);
}

.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-success:active {
    background-color: #1e7e34;
    transform: scale(0.98);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color, #0066CC);
    border-color: var(--primary-color, #0066CC);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.btn-outline-primary:active {
    background-color: #0052a3;
    transform: scale(0.98);
}

/* КРОК 3: Посилання в меню - Анімація підкреслення */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
    transform: translateX(0);
}

/* Для dropdown посилань */
.dropdown-item {
    position: relative;
    transition: all 0.3s ease;
}

.dropdown-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color, #0066CC);
    transition: width 0.3s ease;
}

.dropdown-item:hover::after {
    width: 100%;
}

/* КРОК 4: Поля вводу - Focus ефекти */
.form-control,
.form-select,
textarea {
    transition: all 0.3s ease;
    border-color: var(--input-border, #ced4da);
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: var(--primary-color, #0066CC);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
    outline: none;
}

/* Додатковий glow ефект при фокусі */
.form-control:focus,
.form-select:focus,
textarea:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15),
                0 0 10px rgba(0, 102, 204, 0.1);
}

/* Dark theme support для полів вводу */
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] textarea:focus {
    border-color: #4a9eff;
    box-shadow: 0 0 0 0.2rem rgba(74, 158, 255, 0.25),
                0 0 10px rgba(74, 158, 255, 0.15);
}

/* Додаткові мікро-взаємодії для інших елементів */
a:not(.btn):not(.nav-link):not(.dropdown-item) {
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
    opacity: 0.8;
}

/* Анімація для іконок при hover на картках */
.service-card:hover .service-icon-wrapper,
.feature-card:hover .feature-icon {
    transition: all 0.3s ease;
}

