/*
Theme Name: Антарес Про (Kadence Child)
Description: Дочерняя тема Kadence для платформы Антарес Про
Author: Antares Pro
Template: kadence
Version: 1.0.0
*/

:root {
    --color-primary: #0B2545;
    --color-accent: #1A5F7A;
    --color-gold: #D4AF37;
    --color-text: #1A1A1A;
    --color-text-secondary: #4A4A4A;
    --color-text-muted: #6B7280;
    --color-bg: #F8F9FA;
    --color-bg-alt: #EDF2F7;
    --color-white: #FFFFFF;
    --color-success: #28a745;
    --color-error: #dc3545;
    --color-warning: #ffc107;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.06);
    --shadow-md: 0 4px 16px rgba(11, 37, 69, 0.1);
    --shadow-lg: 0 8px 30px rgba(11, 37, 69, 0.12);

    --font-heading: 'Manrope', system-ui, -apple-system, sans-serif;
    --font-body: 'Roboto', system-ui, -apple-system, sans-serif;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
}

/* === BASE === */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 var(--space-md);
    color: var(--color-primary);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
a { color: var(--color-accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--color-primary); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); }
main { padding: var(--space-2xl) 0; min-height: 70vh; }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
    padding: 12px 24px; font-family: var(--font-heading); font-weight: 600; font-size: 14px;
    border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer;
    transition: all 0.2s ease; text-decoration: none; line-height: 1.2;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-white); }
.btn-primary:hover:not(:disabled) { background: var(--color-primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--color-accent); color: var(--color-accent); }
.btn-outline:hover:not(:disabled) { background: var(--color-accent); color: var(--color-white); }
.btn-success { background: var(--color-success); color: var(--color-white); }
.btn-block { width: 100%; display: flex; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-enroll.enrolled { background: var(--color-success); pointer-events: none; }

/* === CARDS & GRID === */
.card { background: var(--color-white); border-radius: var(--radius-md); padding: var(--space-lg); box-shadow: var(--shadow-sm); border: 1px solid #eee; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-lg); }

/* === FORMS === */
.form-group { margin-bottom: var(--space-md); }
.form-group label { display: block; margin-bottom: var(--space-xs); font-weight: 500; font-size: 14px; color: var(--color-text-secondary); }
.form-control {
    width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 14px; background: var(--color-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus { border-color: var(--color-accent); outline: none; box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.2); }
.form-control:disabled { background: var(--color-bg-alt); cursor: not-allowed; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; max-height: 200px; overflow-y: auto; padding: 10px; background: var(--color-bg); border-radius: var(--radius-sm); border: 1px solid #eee; }
.checkbox-item { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; padding: 4px; border-radius: 4px; transition: background 0.15s; }
.checkbox-item:hover { background: #e9ecef; }
.checkbox-item input { width: 16px; height: 16px; accent-color: var(--color-accent); }
.form-message { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-top: 10px; display: none; }
.form-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* === HERO === */
.antares-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-white); padding: 80px 0 60px; text-align: center; position: relative; overflow: hidden;
}
.antares-hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
    pointer-events: none;
}
.antares-hero h1 { color: var(--color-white); margin-bottom: 12px; }
.antares-hero .slogan { font-size: 1.25rem; opacity: 0.9; margin-bottom: 32px; font-weight: 500; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === TABS & FILTERS === */
.antares-tabs { display: flex; gap: 8px; margin: 32px 0 24px; border-bottom: 2px solid #e5e7eb; }
.tab-btn {
    padding: 12px 24px; background: none; border: none; border-bottom: 3px solid transparent;
    cursor: pointer; font-family: var(--font-heading); font-weight: 600; font-size: 15px;
    color: var(--color-text-muted); transition: all 0.2s;
}
.tab-btn:hover { color: var(--color-accent); }
.tab-btn.active { border-bottom-color: var(--color-gold); color: var(--color-primary); }
.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.antares-controls {
    display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; padding: 16px;
    background: var(--color-white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
    align-items: flex-end;
}
.filter-group, .sort-group { flex: 1; min-width: 200px; }

/* === CARDS (Lectures/Cycles) === */
.lectures-grid, .cycles-grid { @apply .grid-3; }
.lecture-card, .cycle-card { background: var(--color-white); border-radius: var(--radius-md); padding: var(--space-lg); box-shadow: var(--shadow-sm); border: 1px solid #eee; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.lecture-card:hover, .cycle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.card-header h3 { margin: 0; font-size: 1.1rem; }
.cycle-badge {
    display: inline-block; background: var(--color-bg-alt); color: var(--color-accent);
    padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; white-space: nowrap;
}
.cycle-badge:hover { background: var(--color-accent); color: white; }
.card-footer { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee; }
.specs-list { font-size: 12px; color: var(--color-text-muted); }

/* === DASHBOARD === */
.dashboard-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid #e5e7eb; }
.profile-form, .profile-view { background: var(--color-white); border-radius: var(--radius-md); padding: var(--space-lg); box-shadow: var(--shadow-sm); border: 1px solid #eee; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 24px; }
.info-card { background: var(--color-bg); padding: 16px; border-radius: var(--radius-sm); }
.info-card strong { display: block; font-size: 12px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white; padding: 20px; border-radius: var(--radius-md); text-align: center;
}
.stat-number { display: block; font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.consent-notice { background: #fff3cd; color: #856404; padding: 14px; border-radius: var(--radius-sm); border-left: 4px solid var(--color-warning); font-size: 13px; }

/* === AUTH === */
.antares-auth-wrapper { display: flex; justify-content: center; align-items: center; min-height: 60vh; padding: 40px 0; }
.auth-card { background: var(--color-white); border-radius: var(--radius-md); padding: var(--space-lg); box-shadow: var(--shadow-md); border: 1px solid #eee; width: 100%; max-width: 480px; text-align: center; }
.auth-card h1 { margin-bottom: 24px; }
.auth-note { margin-top: 20px; font-size: 14px; color: var(--color-text-muted); }

/* === SINGLE PAGES === */
.single-content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; margin-top: 24px; }
.single-main { background: var(--color-white); border-radius: var(--radius-md); padding: var(--space-xl); box-shadow: var(--shadow-sm); border: 1px solid #eee; }
.single-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: var(--color-white); border-radius: var(--radius-md); padding: var(--space-md); box-shadow: var(--shadow-sm); border: 1px solid #eee; }
.sidebar-card h3 { margin: 0 0 12px; font-size: 1.1rem; color: var(--color-primary); }
.meta-list { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.meta-list li { padding: 10px 0; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; }
.meta-list li:last-child { border-bottom: none; }
.meta-label { color: var(--color-text-muted); }
.meta-value { font-weight: 500; text-align: right; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .single-content-grid { grid-template-columns: 1fr; }
    .antares-controls { flex-direction: column; }
    .dashboard-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
    .checkbox-grid { grid-template-columns: 1fr; max-height: 150px; }
}
/* === Утилиты === */
.section { padding: var(--space-2xl) 0; }
.text-center { text-align: center; }
.card { background: var(--color-white); border-radius: var(--radius-md); padding: var(--space-lg); box-shadow: var(--shadow-sm); border: 1px solid #eee; }

/* === Главная === */
.antares-home .section:not(:last-child) { border-bottom: 1px solid var(--color-bg-alt); }

/* === Вкладки и фильтры === */
.antares-tabs { display: flex; gap: 8px; margin: 0 0 24px; border-bottom: 2px solid #e5e7eb; }
.tab-btn {
    padding: 12px 24px; background: none; border: none; border-bottom: 3px solid transparent;
    cursor: pointer; font-family: var(--font-heading); font-weight: 600; font-size: 15px;
    color: var(--color-text-muted); transition: all 0.2s;
}
.tab-btn.active { border-bottom-color: var(--color-gold); color: var(--color-primary); }
.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.antares-controls {
    display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; padding: 16px;
    background: var(--color-white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
    align-items: flex-end;
}
.filter-group, .sort-group { flex: 1; min-width: 200px; }
.form-control {
    width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 14px; background: var(--color-white);
}
.form-control:focus { border-color: var(--color-accent); outline: none; box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.2); }

/* === Карточки === */
.lectures-grid, .cycles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-lg); }
.lecture-card, .cycle-card { background: var(--color-white); border-radius: var(--radius-md); padding: var(--space-lg); box-shadow: var(--shadow-sm); border: 1px solid #eee; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.lecture-card:hover, .cycle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.card-header h3 { margin: 0; font-size: 1.1rem; }
.cycle-badge {
    display: inline-block; background: var(--color-bg-alt); color: var(--color-accent);
    padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; white-space: nowrap;
}
.cycle-badge:hover { background: var(--color-accent); color: white; }
.lecture-date { font-size: 13px; color: var(--color-text-muted); margin: 4px 0; }
.lecture-excerpt, .cycle-excerpt { font-size: 14px; color: var(--color-text-secondary); margin: 8px 0; line-height: 1.4; }
.card-footer { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee; }
.specs-list { font-size: 12px; color: var(--color-text-muted); }
.cycle-thumb { width: 100%; height: 140px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 12px; }
.cycle-meta { font-size: 13px; color: var(--color-accent); margin: 4px 0; }

/* === Дашборд (узкий, как в плагине) === */
.dashboard-wrapper { max-width: 700px; margin: 0 auto; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #e5e7eb; }
.header-actions { display: flex; gap: 8px; }
.profile-form, .profile-view { background: var(--color-white); border-radius: var(--radius-md); padding: var(--space-lg); box-shadow: var(--shadow-sm); border: 1px solid #eee; }
.form-row { margin-bottom: 18px; }
.form-row-2, .form-row-3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.form-col { display: flex; flex-direction: column; }
.form-col label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; color: var(--color-text-secondary); }
.form-col input, .form-col select { width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
.form-col input:disabled { background: #f5f5f5; cursor: not-allowed; }
.checkbox-group {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px 12px; margin-top: 8px; max-height: 200px; overflow-y: auto;
    padding: 8px; background: #fafafa; border-radius: 4px; border: 1px solid #eee;
}
.checkbox-group label { font-weight: 400; font-size: 13px; cursor: pointer; display: flex; align-items: flex-start; gap: 7px; line-height: 1.3; }
.checkbox-group input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--color-accent); }
.form-message { padding: 10px 14px; border-radius: 4px; font-size: 14px; margin-top: 10px; display: none; }
.form-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 24px; }
.info-card { background: var(--color-bg); padding: 16px; border-radius: var(--radius-sm); }
.info-card strong { display: block; font-size: 12px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.stat-card { background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); color: white; padding: 20px; border-radius: var(--radius-md); text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.consent-notice { background: #fff3cd; color: #856404; padding: 14px; border-radius: var(--radius-sm); border-left: 4px solid var(--color-warning); font-size: 13px; }
.dash-tab-content.active { display: block; }

/* === Адаптив === */
@media (max-width: 768px) {
    .antares-controls { flex-direction: column; }
    .dashboard-header { flex-direction: column; align-items: flex-start; }
    .stats-grid { grid-template-columns: 1fr; }
    .checkbox-group { grid-template-columns: 1fr; max-height: 250px; }
}