/* Unified Header and Breadcrumb Styles */
/* Автор: AI Assistant */
/* Версия: 1.0 */

/* ===== UNIFIED PAGE HEADER ===== */
.unified-page-header {
    background: #ffffff;
    border: 1px solid #f1f3f4;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.unified-page-header .container-xxl {
    position: relative;
    z-index: 2;
}

/* Header Title Section */
.unified-header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.unified-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.unified-header-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.unified-header-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.unified-header-icon:hover::before {
    opacity: 1;
}

.unified-header-icon.primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.unified-header-icon.info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.unified-header-icon.success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.unified-header-icon.warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.unified-header-icon.danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.unified-header-icon.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
}

.unified-header-icon.vk {
    background: linear-gradient(135deg, #4a76a8 0%, #2a4a6b 100%);
}

.unified-header-text {
    flex: 1;
}

.unified-header-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.unified-header-subtitle {
    color: #6c757d;
    font-size: 1.15rem;
    margin: 0.75rem 0 0 0;
    font-weight: 500;
    line-height: 1.5;
    opacity: 0.9;
}

/* Header Stats Section */
.unified-header-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.unified-stat-badge {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #f1f3f4;
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.unified-stat-badge:hover {
    background: white;
    border-color: #e9ecef;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.unified-stat-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.unified-stat-badge:hover::before {
    left: 100%;
}

.unified-stat-badge.primary {
    background: rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.2);
    color: #0056b3;
}

.unified-stat-badge.info {
    background: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.2);
    color: #138496;
}

.unified-stat-badge.success {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.2);
    color: #1e7e34;
}

/* Header Actions Section */
.unified-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.unified-header-actions .btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border-width: 2px;
    position: relative;
    overflow: hidden;
}

.unified-header-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.unified-header-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.unified-header-actions .btn:hover::before {
    left: 100%;
}

/* ===== UNIFIED BREADCRUMBS ===== */
.unified-breadcrumbs {
    background: white;
    border: 1px solid #f1f3f4;
    border-radius: 12px;
    padding: 1.25rem 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.unified-breadcrumbs:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.unified-breadcrumbs .breadcrumb {
    margin: 0;
    padding: 0;
    background: none;
}

.unified-breadcrumbs .breadcrumb-item {
    font-size: 0.9rem;
    font-weight: 500;
}

.unified-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
    margin: 0 0.75rem;
}

.unified-breadcrumbs .breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.unified-breadcrumbs .breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.unified-breadcrumbs .breadcrumb-item.active {
    color: #495057;
    font-weight: 600;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .unified-page-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .unified-header-title h1 {
        font-size: 1.75rem;
    }
    
    .unified-header-subtitle {
        font-size: 1rem;
    }
    
    .unified-header-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .unified-header-stats {
        gap: 0.5rem;
    }
    
    .unified-stat-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .unified-header-actions {
        gap: 0.5rem;
    }
    
    .unified-header-actions .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .unified-breadcrumbs {
        padding: 0.75rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .unified-breadcrumbs .breadcrumb-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .unified-page-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .unified-header-title h1 {
        font-size: 1.5rem;
    }
    
    .unified-header-subtitle {
        font-size: 0.9rem;
    }
    
    .unified-header-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .unified-header-stats {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .unified-header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .unified-header-actions .btn {
        width: 100%;
    }
    
    .unified-breadcrumbs {
        padding: 0.5rem 0.75rem;
        margin-bottom: 1rem;
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.unified-page-header {
    animation: fadeInUp 0.8s ease-out;
}

.unified-header-icon {
    animation: slideInLeft 1s ease-out;
}

.unified-header-text {
    animation: fadeInUp 0.9s ease-out;
}

.unified-header-stats {
    animation: fadeInUp 1.1s ease-out;
}

.unified-header-actions {
    animation: fadeInUp 1.2s ease-out;
}

.unified-breadcrumbs {
    animation: slideInLeft 0.7s ease-out;
}

/* ===== UTILITY CLASSES ===== */
.text-gradient-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.shadow-medium {
    box-shadow: 0 4px 25px rgba(0,0,0,0.12);
}
