/**
 * BIOSHOCK / ART DECO THEME - ГЛАВНАЯ СТРАНИЦА
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500&display=swap');

/* ===== ОСНОВНЫЕ ПЕРЕМЕННЫЕ ===== */
:root {
    --gold-primary: #d4af37;
    --gold-dim: #b08d57;
    --deep-teal: #1a3b4f;
    --wine: #722f37;
    --cream: #f5ecd9;
    --ivory: #fffff0;
    --charcoal: #2c2c2c;
    --charcoal-light: #4a4a4a;
}

/* ===== ГЛОБАЛЬНЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(135deg, var(--cream) 0%, var(--ivory) 100%);
    color: var(--charcoal);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px;
    position: relative;
}

/* Декоративный фон */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            rgba(212, 175, 55, 0.02) 0px,
            rgba(212, 175, 55, 0.02) 10px,
            transparent 10px,
            transparent 20px
        );
    pointer-events: none;
    z-index: -1;
}

/* ===== КОНТЕЙНЕРЫ ===== */
.container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.row {
    display: flex;
    justify-content: center;
}

.col-lg-10 {
    width: 100%;
}

/* ===== ГЛАВНАЯ КАРТОЧКА ===== */
.welcome-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--gold-primary);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
}

.welcome-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), var(--deep-teal), var(--gold-primary));
}

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

/* ===== ШАПКА ===== */
.welcome-header {
    background: linear-gradient(135deg, var(--deep-teal) 0%, #0f2c3a 100%);
    padding: 50px 30px;
    text-align: center;
    position: relative;
    border-bottom: 3px solid var(--gold-primary);
}

.welcome-header::before,
.welcome-header::after {
    content: "⚜️";
    position: absolute;
    font-size: 2rem;
    opacity: 0.2;
}

.welcome-header::before {
    top: 10px;
    left: 20px;
    transform: rotate(-15deg);
}

.welcome-header::after {
    bottom: 10px;
    right: 20px;
    transform: rotate(15deg);
}

.welcome-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--gold-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
}

.welcome-header .lead {
    font-size: 1.3rem;
    color: var(--cream);
    margin-bottom: 10px;
}

.welcome-header .subtitle {
    color: rgba(245, 236, 217, 0.8);
    font-size: 1.1rem;
}

/* ===== БЕЙДЖИ ===== */
.stats-badge {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold-primary);
    padding: 8px 20px;
    display: inline-block;
    margin-bottom: 20px;
    color: var(--gold-primary);
    border-radius: 30px;
}

.deadline-badge {
    background: linear-gradient(135deg, var(--wine) 0%, #8b4c4c 100%);
    color: var(--cream);
    padding: 12px 25px;
    display: inline-block;
    border-radius: 40px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(114, 47, 55, 0.3);
}

.deadline-passed {
    background: #666;
    color: white;
    padding: 12px 25px;
    display: inline-block;
    border-radius: 40px;
    margin-top: 20px;
}

/* ===== ТЕЛО КАРТОЧКИ ===== */
.card-body {
    padding: 50px;
}

.card-body h2 {
    font-family: 'Cinzel', serif;
    color: var(--deep-teal);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
}

.card-body .text-muted {
    color: var(--charcoal-light);
    text-align: center;
    margin-bottom: 40px;
    font-style: italic;
}

/* ===== КАРТОЧКА УЧАСТНИКА (единственная) ===== */
.role-card {
    border: 2px solid var(--gold-primary);
    background: white;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.role-icon {
    font-size: 4rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

.role-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--deep-teal);
    margin-bottom: 15px;
}

.role-card p {
    color: var(--charcoal-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.role-card p .small {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== КНОПКА ===== */
.btn-role {
    background: transparent;
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 12px 30px;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
}

.btn-role:hover {
    background: var(--gold-primary);
    color: var(--deep-teal);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

/* ===== БЕЙДЖИ СОСТОЯНИЙ ===== */
.badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
}

.badge.bg-danger {
    background: linear-gradient(135deg, var(--wine) 0%, #8b4c4c 100%);
    color: white;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #b08d57 0%, #d4af37 100%);
    color: white;
}

/* ===== ИНФОРМАЦИОННЫЕ БЛОКИ ===== */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.1);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--gold-primary);
}

.feature-item h5 {
    color: var(--deep-teal);
    margin-bottom: 5px;
    font-size: 1rem;
}

.feature-item p {
    color: var(--charcoal-light);
    font-size: 0.9rem;
}

/* ===== КОНТАКТЫ ===== */
.contacts {
    background: white;
    border: 1px solid var(--gold-dim);
    border-radius: 8px;
    padding: 25px;
    margin-top: 40px;
    text-align: center;
}

.contacts-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.contacts-content i {
    color: var(--gold-primary);
    font-size: 1.2rem;
}

.contacts-content a {
    color: var(--deep-teal);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--gold-primary);
}

.contacts-content a:hover {
    color: var(--gold-primary);
}

/* ===== ФУТЕР СО ССЫЛКОЙ ДЛЯ АДМИНА ===== */
.footer {
    border-top: 1px solid var(--gold-dim);
    padding: 25px;
    text-align: center;
    background: rgba(245, 236, 217, 0.3);
}

.footer p {
    color: var(--charcoal-light);
    margin: 5px 0;
}

.admin-link {
    margin-top: 10px;
}

.admin-login-link {
    color: var(--charcoal-light);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 15px;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.admin-login-link:hover {
    color: var(--gold-primary);
    border-color: var(--gold-primary);
    border-radius: 4px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .welcome-header h1 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 30px;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .role-card {
        padding: 30px 20px;
    }
}
/* Стили для вкладок выбора образования */
.education-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.edu-tab {
    flex: 1;
    padding: 15px 20px;
    background: white;
    border: 2px solid #c0b7a8;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}

.edu-tab:hover {
    border-color: #d4af37;
}

.edu-tab.active {
    background: #d4af37;
    border-color: #d4af37;
    color: #1a3b4f;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.institution-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #c0b7a8;
    border-radius: 4px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    margin-bottom: 20px;
}

.institution-select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}
