/* Основные стили BestDay Book */
.bestday-voice-recorder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.recorder-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.8em;
}

.recorder-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 25px 0;
    flex-wrap: wrap;
}

.record-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.record-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.record-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.record-btn.stop {
    background: rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.5);
}

.recording-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(220, 53, 69, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
}

.pulse {
    width: 12px;
    height: 12px;
    background: #dc3545;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(0.8); opacity: 1; }
}

.audio-preview {
    margin: 20px 0;
    text-align: center;
}

.secondary-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 10px;
}

/* Форма */
#voiceEntryForm {
    margin-top: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    font-size: 1em;
}

.mood-stars {
    font-size: 2em;
    cursor: pointer;
}

.mood-stars .star {
    transition: all 0.2s ease;
    margin: 0 2px;
}

.mood-stars .star:hover,
.mood-stars .star.hover {
    transform: scale(1.2);
    color: #ffd700;
}

.mood-stars .star.selected {
    color: #ffd700;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 10px;
}

.submit-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Книга */
.bestday-book-container {
    text-align: center;
    padding: 20px;
}

.book-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.book-controls {
    margin: 20px 0;
}

.book-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 10px;
}

.flipbook {
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.hard {
    background: linear-gradient(45deg, #8B4513, #A0522D);
    color: gold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-content h1 {
    font-size: 3em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.nova-logo {
    font-size: 2em;
    letter-spacing: 5px;
    margin: 20px 0;
}

.page {
    background: #fefefe;
    padding: 30px;
    box-sizing: border-box;
}

.page-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.entry-header h3 {
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.entry-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.mood-display {
    color: #f39c12;
}

.entry-content {
    flex-grow: 1;
    line-height: 1.6;
    text-align: left;
}

.audio-player {
    margin: 20px 0;
}

.audio-player audio {
    width: 100%;
}

.entry-footer {
    margin-top: auto;
}

.inspire-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inspire-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.inspire-btn.inspired {
    background: #27ae60;
}

/* Стена вдохновения */
.inspiration-wall {
    margin: 40px 0;
}

.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.inspiration-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.inspiration-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-content h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.card-footer {
    margin-top: 15px;
    text-align: right;
    font-style: italic;
    color: #7f8c8d;
}

/* Сообщения */
.form-message {
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Адаптивность */
@media (max-width: 768px) {
    .flipbook {
        width: 100% !important;
        height: 400px !important;
    }
    
    .recorder-controls {
        justify-content: center;
    }
    
    .book-controls {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.bestday-voice-recorder,
.bestday-book-container,
.inspiration-wall {
    animation: fadeIn 0.8s ease-out;
}