/* ===== СТРАНИЦА ВОПРОСОВ ===== */
.questions-page {
    background: linear-gradient(to bottom, #F5CDD3 0%, #F5CDD3 55%, #e79aab 85%, #e79aab 100%);
    padding: 100px 0 80px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.questions-page .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== БЛЁСТКИ ===== */
.shimmer-dot {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 40%, rgba(255,255,255,0.3) 70%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 10;
    animation: shimmerBig 3s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,0.4);
}

@keyframes shimmerBig {
    0%, 100% { opacity: 0; transform: scale(0.2) translateY(0); }
    25% { opacity: 1; transform: scale(1.3) translateY(-8px); box-shadow: 0 0 15px rgba(255,255,255,1), 0 0 25px rgba(255,255,255,0.6); }
    50% { opacity: 0.6; transform: scale(0.8) translateY(3px); }
    75% { opacity: 0.8; transform: scale(1.1) translateY(-3px); }
}

.sparkle-star {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    animation: sparkleTwinkle 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 4px white);
}

@keyframes sparkleTwinkle {
    0%, 100% { opacity: 0; transform: scale(0.2) rotate(0deg); }
    30% { opacity: 1; transform: scale(1.2) rotate(180deg); filter: drop-shadow(0 0 8px white); }
    60% { opacity: 0.5; transform: scale(0.8) rotate(90deg); }
}

.questions-page .dot-1 { top: 5%; left: 3%; width: 12px; height: 12px; animation-delay: 0s; }
.questions-page .dot-2 { top: 15%; right: 8%; width: 8px; height: 8px; animation-delay: 0.5s; }
.questions-page .dot-3 { top: 30%; left: 10%; width: 10px; height: 10px; animation-delay: 1s; }
.questions-page .dot-4 { bottom: 20%; right: 5%; width: 14px; height: 14px; animation-delay: 1.5s; }
.questions-page .dot-5 { bottom: 40%; left: 5%; width: 7px; height: 7px; animation-delay: 0.3s; }
.questions-page .dot-6 { top: 55%; right: 12%; width: 9px; height: 9px; animation-delay: 0.8s; }
.questions-page .dot-7 { top: 70%; left: 8%; width: 11px; height: 11px; animation-delay: 1.2s; }
.questions-page .dot-8 { bottom: 10%; left: 15%; width: 6px; height: 6px; animation-delay: 1.8s; }
.questions-page .dot-9 { top: 85%; right: 15%; width: 8px; height: 8px; animation-delay: 0.2s; }
.questions-page .dot-10 { bottom: 55%; right: 20%; width: 5px; height: 5px; animation-delay: 1.1s; }
.questions-page .dot-11 { top: 45%; left: 18%; width: 13px; height: 13px; animation-delay: 0.6s; }
.questions-page .dot-12 { bottom: 30%; left: 25%; width: 9px; height: 9px; animation-delay: 1.4s; }

.questions-page .star-1 { top: 10%; left: 20%; width: 9px; height: 9px; animation-delay: 0.2s; }
.questions-page .star-2 { top: 25%; right: 18%; width: 11px; height: 11px; animation-delay: 0.7s; }
.questions-page .star-3 { bottom: 15%; left: 12%; width: 8px; height: 8px; animation-delay: 1.3s; }
.questions-page .star-4 { bottom: 35%; right: 10%; width: 10px; height: 10px; animation-delay: 0.5s; }
.questions-page .star-5 { top: 60%; left: 15%; width: 7px; height: 7px; animation-delay: 0.9s; }
.questions-page .star-6 { top: 80%; right: 22%; width: 12px; height: 12px; animation-delay: 1.6s; }

/* Заголовок */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 15;
}

.page-header h1 {
    font-family: "Czizh";
    font-size: 48px;
    color: #5B2B37;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.page-header p {
    font-family: "Coolvetica";
    font-size: 20px;
    color: #aa4e65;
}

/* FAQ секция */
.faq-section {
    background: rgba(255,255,255,0.95);
    border-radius: 28px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
    z-index: 15;
}

.faq-section h2 {
    font-family: "Czizh", cursive;
    font-size: 28px;
    color: #AA4E65;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #F5CDD3;
}

.faq-item {
    border-bottom: 1px solid #F5CDD3;
    margin-bottom: 5px;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 15px;
    cursor: pointer;
    font-family: "Coolvetica";
    font-size: 18px;
    color: #5B2B37;
    font-weight: 500;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #F5CDD3;
    border-radius: 16px;
}

.faq-question-text {
    flex: 1;
}

.faq-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
    color: #aa4e65;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 15px 20px 15px;
    font-family: "Coolvetica";
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Форма вопроса */
.ask-question-section {
    background: white;
    border-radius: 28px;
    padding: 35px;
    margin-bottom: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #F5CDD3;
    position: relative;
    z-index: 15;
}

.ask-question-section h2 {
    font-family: "Czizh", cursive;
    font-size: 28px;
    color: #5B2B37;
    margin-bottom: 20px;
}

.ask-form textarea {
    width: 100%;
    padding: 18px;
    border: 2px solid #F5CDD3;
    border-radius: 20px;
    font-family: "Coolvetica";
    font-size: 16px;
    resize: vertical;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.ask-form textarea:focus {
    outline: none;
    border-color: #aa4e65;
}

.submit-btn {
    background: #aa4e65;
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-family: "Coolvetica";
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #5B2B37;
    transform: scale(1.02);
}

.login-prompt {
    text-align: center;
    padding: 30px;
    background: #fef8f6;
    border-radius: 20px;
}

.login-prompt a {
    color: #aa4e65;
    text-decoration: none;
    font-weight: bold;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* Опубликованные вопросы */
.answered-questions-section {
    margin-bottom: 40px;
    position: relative;
    z-index: 15;
}

.answered-questions-section h2 {
    font-family: "Czizh", cursive;
    font-size: 28px;
    color: #5B2B37;
    margin-bottom: 25px;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.question-card {
    background: white;
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #F5CDD3;
    transition: all 0.3s;
}

.question-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(170, 78, 101, 0.15);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F5CDD3;
    flex-wrap: wrap;
    gap: 10px;
}

.question-author {
    font-family: "Coolvetica";
    font-weight: bold;
    color: #5B2B37;
    font-size: 16px;
}

.question-date {
    font-family: "Coolvetica";
    font-size: 13px;
    color: #999;
}

.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #dc3545;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 8px;
    font-family: "Coolvetica";
}

.delete-btn:hover {
    background: #ffebee;
    text-decoration: none;
}

.question-text {
    font-family: "Coolvetica";
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}

.answer-box {
    background: #F5CDD3;
    border-radius: 20px;
    padding: 20px;
    margin-top: 10px;
}

.answer-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(91,43,55,0.2);
}

.answerer {
    font-family: "Coolvetica";
    font-weight: bold;
    color: #5B2B37;
}

.answer-date {
    font-family: "Coolvetica";
    font-size: 12px;
    color: #888;
}

.answer-text {
    font-family: "Coolvetica";
    font-size: 15px;
    color: #5B2B37;
    line-height: 1.5;
}

/* Форма ответа */
.answer-form-container {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed #F5CDD3;
}

.answer-form {
    background: #fef8f6;
    border-radius: 24px;
    padding: 20px;
    transition: all 0.3s ease;
}

.answer-form:hover {
    box-shadow: 0 5px 20px rgba(170, 78, 101, 0.1);
}

.answer-form textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #F5CDD3;
    border-radius: 20px;
    font-family: "Coolvetica", sans-serif;
    font-size: 15px;
    resize: vertical;
    transition: all 0.3s;
    background: white;
    color: #5B2B37;
    line-height: 1.5;
}

.answer-form textarea:focus {
    outline: none;
    border-color: #AA4E65;
    box-shadow: 0 0 0 3px rgba(170, 78, 101, 0.1);
}

.answer-form textarea::placeholder {
    color: #b8a9a9;
    font-family: "Coolvetica", sans-serif;
}

.submit-answer-btn {
    margin-top: 15px;
    background: linear-gradient(135deg, #AA4E65 0%, #8a3e52 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: "Coolvetica", sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(170, 78, 101, 0.3);
}

.submit-answer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(170, 78, 101, 0.4);
    background: linear-gradient(135deg, #8a3e52 0%, #6e2e3f 100%);
}

/* Пустые состояния */
.empty-faq, .empty-questions {
    text-align: center;
    padding: 50px 20px;
    color: #888;
    font-family: "Coolvetica";
    background: #fef8f6;
    border-radius: 20px;
}

.empty-questions::before {
    content: "💬";
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Уведомления */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: 12px;
    margin-top: 15px;
    text-align: center;
    font-family: "Coolvetica";
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    border-radius: 12px;
    margin-top: 15px;
    text-align: center;
    font-family: "Coolvetica";
}

/* Адаптив */
@media (max-width: 768px) {
    .questions-page {
        padding: 80px 0 50px;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .faq-section h2,
    .ask-question-section h2,
    .answered-questions-section h2 {
        font-size: 24px;
    }
    
    .faq-question {
        font-size: 16px;
        padding: 15px 12px;
    }
    
    .ask-question-section {
        padding: 25px;
    }
    
    .question-card {
        padding: 18px;
    }
    
    .question-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .shimmer-dot, .sparkle-star {
        display: none !important;
    }
}