/*===========================================================
1-2. introduction.css 
===========================================================*/
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    min-height: 100vh;
    line-height: 1.5;
    margin: 0 0 80px;
}

/* Навигация */
.nav {
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: left;
    justify-content: space-between;
}

/* Логотип — десктоп */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: #C0C0C0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon span {
    color: #000000;
    font-size: 24px;
    font-weight: bold;
}

.logo-text {
    color: #C0C0C0;
    font-size: 24px;
    font-weight: 700;
}

.highlight {
    font-size: 24px;
    font-weight: 700;
    color: #4CAF50;
}

/* Главный экран */
.hero {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    min-height: 8vh;
    display: flex;
    align-items: center;
    padding: 10px 10px;
}

.hero-content {
    background: linear-gradient(135deg, #0a1a0a, #1a2a1a);
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
    transition: all 0.3s;
}

.hero-content:hover {
    border-color: #4CAF50;
}

.hero-title {
    font-size: clamp(30px, 8vw, 30px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
}

.highlight {
    color: #ffb74d;
    text-shadow: 0 0 30px rgba(9, 43, 10, 0.5);
}

.hero-subtitle {
    font-size: clamp(20px, 4vw, 28px);
    color: #ccc;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.btn-cta {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 20px 60px;
    font-size: 24px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(76,175,80,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(76,175,80,0.5);
}

/* Демо-карточка */
.card-demo {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    border-radius: 15px;
    padding: 30px;
    margin: 30px auto;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-word {
    font-size: 24px;
    font-weight: bold;
    color: white;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card-transcription {
    font-size: 20px;
    color: #aaa;
    opacity: 0;
    transition: opacity 0.5s ease;
    margin-top: 8px;
}

.card-label {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(76,175,80,0.3);
    color: #4CAF50;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

@keyframes showWord {
    0%, 15% { opacity: 0; }
    20%, 100% { opacity: 1; }
}

@keyframes showTranscription {
    0%, 55% { opacity: 0; }
    60%, 100% { opacity: 1; }
}

@keyframes showBoth {
    0%, 5% { opacity: 0; }
    10%, 100% { opacity: 1; }
}

/* Нижняя панель */
.bottom-panel {
    background: rgba(0,0,0,0.98);
    backdrop-filter: blur(30px);
    border-top: 2px solid #444;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-shrink: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
    padding: 5px;
}

.home {
    background: rgba(76,175,80,0.3);
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

.home:hover {
    background: rgba(76,175,80,0.5);
    transform: scale(1.05);
}

/* Кнопочные цвета */
.answer-demo {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 24px;
    font-weight: bold;
}

.again-demo {
    display: inline-block;
    background: #f44336;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 24px;
    font-weight: bold;
}

.tomorrow-demo {
    display: inline-block;
    background: #FF9800;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 24px;
    font-weight: bold;
}

.good-demo {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 24px;
    font-weight: bold;
}

/* Карточки-демо */
.card-demo {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px solid #4CAF50;
    border-radius: 20px;
    padding: 30px 20px;
    margin: 20px auto;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-label {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(76,175,80,0.2);
    color: #4CAF50;
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

.card-word-demo, .card-transcription-demo {
    font-size: 28px;
    font-weight: bold;
    margin: 5px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-word-demo {
    color: #fff;
}

.card-transcription-demo {
    color: #FF9800;
    font-family: monospace;
}

/* Анимации */
@keyframes fadeInOut {
    0% { opacity: 1; }
    /*0% { opacity: 0; }
    10% { opacity: 1; }
    80% { opacity: 1; }*/
    100% { opacity: 0; }
}

@keyframes fadeInKeep {
    0% { opacity: 0; }
    10% { opacity: 1; }
    100% { opacity: 1; }
}

.card-fields-demo {
    background: rgba(0,0,0,0.3);
    border-radius: 16px;
    padding: 20px;
    margin: 20px auto;
    max-width: 400px;
}

.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a1a;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 12px;
    border: 1px solid #333;
}

.field-row:last-child {
    margin-bottom: 0;
}

.field-label {
    font-weight: bold;
    color: #4CAF50;
    font-size: 14px;
}

.field-placeholder {
    color: #FF9800;
    font-family: monospace;
    font-size: 16px;
}

.voice-demo {
    text-align: center;
    margin: 20px auto;
    padding: 15px;
    background: rgba(98,179,172,0.1);
    border-radius: 60px;
    display: inline-block;
    width: auto;
}

.voice-icon-demo {
    display: inline-block;
    margin-bottom: 8px;
}

.voice-caption {
    font-size: 14px;
    color: #62b3ac;
    margin-top: 5px;
}

                                .offline-notice {
                                    background: rgba(0,0,0,0.3);
                                    border-left: 4px solid #4CAF50;
                                    padding: 15px 20px;
                                    margin: 20px auto;
                                    border-radius: 8px;
                                    max-width: 800px;
                                }
                                
                                .offline-notice p {
                                    margin: 0;
                                    color: #ccc;
                                    line-height: 1.5;
                                }

/* Адаптация */
@media (max-width: 768px) {
    .hero-title {
        font-size: 24px;
    }
    
    .btn-cta {
        padding: 12px 30px;
        font-size: 18px;
    }
    
    .logo-icon {
        width: 24px;
        height: 24px;
    }
    
    .logo-icon span {
        font-size: 16px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .nav-container {
        padding-left: 20px;
        justify-content: flex-start;
    }
    
    .card-demo {
        padding: 20px;
        margin: 20px auto;
    }
    
    .card-word {
        font-size: 20px;
    }
    
    .card-transcription {
        font-size: 16px;
    }
    
    .btn {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 8px;
        font-weight: 700;
        text-decoration: none;
        text-align: center;
        line-height: 1.2;
        padding: 5px;
    }
    
    .home {
        background: rgba(76,175,80,0.3);
        color: #4CAF50;
        border: 2px solid #4CAF50;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 15px;
    }
    
    .btn-cta {
        padding: 10px 20px;
        font-size: 16px;
    }
}