/* public/assets/css/public/main-page.css */

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
}

/* ШАПКА САЙТА */
.public-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-accent { color: #0284c7; }

.navbar-auth-zone {
    display: flex;
    align-items: center;
    gap: 16px;
}

.welcome-user {
    font-size: 0.95rem;
    color: #334155;
}

.role-badge {
    color: #0284c7;
    font-weight: bold;
    font-size: 0.85rem;
}

.btn-navbar {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-dashboard { background-color: #f1f5f9; color: #334155; }
.btn-dashboard:hover { background-color: #e2e8f0; }
.btn-logout { color: #ef4444; }
.btn-login { background-color: #0284c7; color: #ffffff; }
.btn-login:hover { background-color: #0369a1; }

/* HERO РАЗДЕЛ */
.hero-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
    padding: 80px 24px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
}

.hero-text-side { flex: 1; }

.hero-action-badge {
    display: inline-block;
    background-color: #ffedd5;
    color: #ea580c;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 16px;
}

.hero-text-side h1 {
    font-size: 3rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 16px 0;
    line-height: 1.15;
}

.hero-text-side p {
    font-size: 1.15rem;
    color: #475569;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

/* ИСПРАВЛЕНО: Синяя главная кнопка */
.btn-hero-blue {
    display: inline-block;
    background-color: #0284c7;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
    transition: background 0.2s, transform 0.1s;
}

.btn-hero-blue:hover { background-color: #0369a1; transform: translateY(-1px); }

.hero-visual-side {
    flex: 1;
    display: flex;
    justify-content: center;
}

.interactive-card-banner {
    width: 100%;
    max-width: 450px;
    height: 260px;
    background: linear-gradient(135deg, #0284c7 0%, #0f172a 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.banner-emoji { font-size: 3rem; margin-bottom: 12px; }
.interactive-card-banner h3 { margin: 0; font-size: 1.4rem; font-weight: 700; }

/* КАРТОЧКИ ПРЕИМУЩЕСТВ */
.advantages-section { padding: 48px 24px; background-color: #ffffff; }
.advantages-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
}

.advantage-card {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    background-color: #f8fafc;
}

.adv-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.advantage-card h3 { margin: 0 0 8px 0; font-size: 1.1rem; font-weight: 700; }
.advantage-card p { margin: 0; font-size: 0.9rem; color: #64748b; line-height: 1.5; }

/* КАТАЛОГ КУРСОВ */
.catalog-section { padding: 64px 24px; }
.catalog-container { max-width: 1200px; margin: 0 auto; }
.catalog-section h2 { text-align: center; font-size: 1.8rem; margin: 0 0 8px 0; font-weight: 800; }
.catalog-subtitle { text-align: center; color: #64748b; margin: 0 0 40px 0; }

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.course-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.course-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.course-card-tag {
    align-self: flex-start;
    background-color: #e0f2fe;
    color: #0369a1;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.course-card-body h3 { margin: 0 0 8px 0; font-size: 1.2rem; font-weight: 700; color: #0f172a; }
.course-card-body p { margin: 0 0 24px 0; font-size: 0.9rem; color: #475569; line-height: 1.5; flex: 1; }

.course-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.course-price { display: flex; flex-direction: column; }
.price-lbl { font-size: 0.75rem; color: #64748b; }
.price-val { font-size: 1.15rem; font-weight: 800; color: #0284c7; }
.btn-course-more { color: #0284c7; text-decoration: none; font-weight: 700; font-size: 0.9rem; }

/* ✉️ ПЛАВАЮЩАЯ СИНЯЯ КНОПКА */
.floating-apply-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    background-color: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.4);
    z-index: 9999;
    transition: transform 0.2s, background-color 0.2s;
    cursor: pointer;
    outline: none;
}

.floating-apply-btn:hover { background-color: #0369a1; transform: scale(1.08); }
.floating-apply-btn:active { transform: scale(0.95); }

/* МОДАЛЬНОЕ ОКНО */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000; opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.modal-active { opacity: 1; pointer-events: auto; }

.modal-content-box {
    background-color: #ffffff; width: 100%; max-width: 480px;
    border-radius: 16px; padding: 32px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative; transform: translateY(20px); transition: transform 0.3s ease;
}
.modal-overlay.modal-active .modal-content-box { transform: translateY(0); }
.modal-close-x { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1.75rem; color: #94a3b8; cursor: pointer; }

.modal-header-zone { text-align: center; margin-bottom: 24px; }
.modal-header-zone h2 { margin: 12px 0 8px 0; font-size: 1.5rem; font-weight: 800; color: #0f172a; }
.modal-header-zone p { margin: 0; font-size: 0.85rem; color: #64748b; line-height: 1.5; }
.modal-form-layout { display: flex; flex-direction: column; gap: 16px; }
.modal-field-group { display: flex; flex-direction: column; gap: 4px; }
.modal-field-group label { font-size: 0.8rem; font-weight: 700; color: #475569; }
.modal-field-group input { padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.95rem; outline: none; transition: border-color 0.2s; }
.modal-field-group input:focus { border-color: #0284c7; box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15); }

/* Синяя кнопка модалки */
.btn-modal-submit-blue {
    background-color: #0284c7; color: #ffffff; border: none; padding: 14px; border-radius: 8px;
    font-size: 1rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
    transition: background 0.2s; margin-top: 8px;
}
.btn-modal-submit-blue:hover { background-color: #0369a1; }

/* ==========================================================================
   КОНСТРУКТОР ЭФФЕКТОВ HERO-БАННЕРА (СТРОГО OCEAN BLUE & SLATE ПАЛИТРА)
   ========================================================================== */
.hero-main-block {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-effect-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    transition: all 0.5s ease;
}

/* Эффект 2: Стеклянный морфизм */
.effect-glass .hero-content-wrapper {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    padding: 2.5rem;
}

/* Эффект 3: Космическая Аврора (Океанские сине-голубые переливы) */
.effect-aurora .hero-effect-overlay {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(3, 105, 161, 0.5) 100%);
}
.effect-aurora::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 60%),
                radial-gradient(circle, rgba(2, 132, 199, 0.2) 0%, transparent 50%);
    animation: auroraAnim 20s linear infinite; z-index: 3; pointer-events: none;
}
@keyframes auroraAnim {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Эффект 4: Киберпанк-сетка (Цифровая синяя сетка) */
.effect-cyber .hero-effect-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.7) 100%);
}
.effect-cyber::before {
    content: ''; position: absolute; inset: 0; background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(56, 189, 248, 0.15) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(56, 189, 248, 0.15) 1px, transparent 1px);
    z-index: 3; pointer-events: none;
}

/* Эффект 5: Магический свет (Мягкое неоново-синее свечение) */
.effect-neon::after {
    content: ''; position: absolute; width: 350px; height: 350px;
    background: #38bdf8; filter: blur(130px); border-radius: 50%;
    top: 15%; left: 5%; opacity: 0.3; z-index: 2; pointer-events: none;
}

.effect-shift .hero-effect-overlay {
    /* Задаем линейный градиент из синих, темно-синих и голубых оттенков */
    background: linear-gradient(-45deg, #0284c7, #0369a1, #0f172a, #38bdf8);
    /* Растягиваем фон, чтобы анимации было куда двигаться */
    background-size: 400% 400%;
    /* Подключаем бесконечную анимацию перемещения фона на 15 секунд */
    animation: oceanGradientShift 15s ease infinite;
    opacity: 0.75;
}

/* Описываем ключевые кадры перемещения градиента */
@keyframes oceanGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}