/* static/css/home.css - стили только для главной страницы */

/* Герой-секция */
.hero-section {
    background: linear-gradient(135deg, #e67e22 0%, #8B5A2B 100%);
    color: white;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
    margin-top: -76px;
    padding-top: 8rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1506126613408-eca07ce68773?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
    opacity: 0.1;
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Системные карточки */
.systems-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

[data-bs-theme="dark"] .systems-section {
    background: #1a1e21;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #e67e22;
    border-radius: 2px;
}

[data-bs-theme="dark"] .section-title {
    color: #e9ecef;
}

.system-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

[data-bs-theme="dark"] .system-card {
    background: #2b3035;
    border-color: rgba(255,255,255,0.1);
}

.system-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    text-decoration: none;
}

.system-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(230, 126, 34, 0.1);
    color: #e67e22;
    transition: all 0.3s ease;
}

.system-card:hover .system-icon {
    background: #e67e22;
    color: white;
    transform: scale(1.05);
}

.system-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

[data-bs-theme="dark"] .system-card h3 {
    color: #e9ecef;
}

.system-card p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}

[data-bs-theme="dark"] .system-card p {
    color: #adb5bd;
}

/* Секции модулей */
.module-section {
    padding: 4rem 0;
}

.module-section:nth-child(even) {
    background: #f8f9fa;
}

[data-bs-theme="dark"] .module-section:nth-child(even) {
    background: #1a1e21;
}

.module-header {
    text-align: center;
    margin-bottom: 3rem;
}

.module-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 2.2rem;
    background: rgba(230, 126, 34, 0.1);
    color: #e67e22;
}

.module-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #e67e22 0%, #8B5A2B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.module-header .lead {
    font-size: 1.1rem;
    color: #6c757d;
}

[data-bs-theme="dark"] .module-header .lead {
    color: #adb5bd;
}

/* Карточки функций */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

[data-bs-theme="dark"] .feature-card {
    background: #2b3035;
    border-color: rgba(255,255,255,0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e67e22, #8B5A2B);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    text-decoration: none;
    color: inherit;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
    color: #e67e22;
}

.feature-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

[data-bs-theme="dark"] .feature-card h4 {
    color: #e9ecef;
}

.feature-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    color: #6c757d;
}

[data-bs-theme="dark"] .feature-card p {
    color: #adb5bd;
}

.card-action {
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.3s ease;
    color: #e67e22;
}

.feature-card:hover .card-action {
    gap: 0.5rem;
}

/* Стили для тёмной темы */
[data-bs-theme="dark"] .feature-card h4,
[data-bs-theme="dark"] .system-card h3,
[data-bs-theme="dark"] .module-header h2,
[data-bs-theme="dark"] .section-title,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h5 {
    color: #e9ecef !important;
}

[data-bs-theme="dark"] .feature-card p,
[data-bs-theme="dark"] .system-card p,
[data-bs-theme="dark"] .module-header .lead,
[data-bs-theme="dark"] .text-muted {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .hero-section .btn-light {
    background-color: #2b3035;
    border-color: #495057;
    color: #e9ecef;
}

[data-bs-theme="dark"] .hero-section .btn-light:hover {
    background-color: #3a4047;
    border-color: #6c757d;
}

[data-bs-theme="dark"] .hero-section .btn-outline-light {
    border-color: #e9ecef;
    color: #e9ecef;
}

[data-bs-theme="dark"] .hero-section .btn-outline-light:hover {
    background-color: #e9ecef;
    color: #1a1e21;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 3rem;
        padding-top: 7rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .module-section {
        padding: 2.5rem 0;
    }

    .module-header h2 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .system-card h3 {
        font-size: 1.2rem;
    }
}