/* ============================================
   DISKUZE A DOTAZY
   ============================================ */

/* Aby se výjezděcí menu v hlavičce nekrájelo */
.header,
.header .header-content {
    overflow: visible;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.page-header h1 {
    color: #1a365d;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #718096;
    font-size: 1.125rem;
}

/* Formulář pro dotazy */
.question-form-section {
    margin-bottom: 3rem;
}

.form-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-card h2 {
    color: #1a365d;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-card h2 svg {
    color: #406bae;
}

.anonymous-info {
    background: #eef5ff;
    border: 2px solid #bdd7f7;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1a365d;
    font-size: 0.9rem;
}

.anonymous-info svg {
    flex-shrink: 0;
    color: #406bae;
}

.discussion-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .discussion-form .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.discussion-form .form-group {
    margin-bottom: 1.5rem;
}

.discussion-form label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.discussion-form input[type="text"],
.discussion-form input[type="email"],
.discussion-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.discussion-form input:focus,
.discussion-form textarea:focus {
    outline: none;
    border-color: #406bae;
    box-shadow: 0 0 0 3px rgba(64, 107, 174, 0.1);
}

.discussion-form small {
    display: block;
    margin-top: 0.25rem;
    color: #718096;
    font-size: 0.875rem;
}

.captcha-group {
    background: #fef9e7;
    border: 2px solid #f9e79f;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.captcha-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.captcha-group label svg {
    color: #f39c12;
}

.captcha-group input {
    margin-top: 0.5rem;
}

.checkbox-group {
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-label a {
    color: #406bae;
    text-decoration: underline;
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #406bae 0%, #1a365d 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(64, 107, 174, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Diskuzní sekce */
.discussions-section {
    margin-bottom: 3rem;
}

.discussions-section h2 {
    color: #1a365d;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.discussions-section h2 svg {
    color: #406bae;
}

.discussions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.no-discussions {
    text-align: center;
    padding: 4rem 2rem;
    color: #718096;
}

.no-discussions svg {
    margin-bottom: 1rem;
    opacity: 0.3;
}

.no-discussions p {
    margin: 0.5rem 0;
    font-size: 1.125rem;
}

/* Diskuzní vlákno */
.discussion-thread {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #406bae;
}

.thread-header {
    margin-bottom: 1rem;
}

.thread-title {
    color: #1a365d;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.thread-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #718096;
    font-size: 0.875rem;
}

.thread-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.thread-meta svg {
    width: 16px;
    height: 16px;
}

.thread-question {
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.message-author {
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.message-content {
    color: #2d3748;
    line-height: 1.6;
    white-space: pre-wrap;
}

.thread-answer {
    padding: 1.5rem;
    background: #eef5ff;
    border-radius: 12px;
    border-left: 3px solid #406bae;
}

.answer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #406bae;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Status badge */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.answered {
    background: #d1fae5;
    color: #065f46;
}

/* Responsivní design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .form-card,
    .discussion-thread {
        padding: 1.5rem;
    }
    
    .thread-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

