/* ========================================
   UPGRADED QUESTIONS PAGE DESIGN
   Modern, attractive design matching website aesthetic
   ======================================== */

/* ========================================
   RESET & BASE
   ======================================== */

.questions-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1f2937;
    line-height: 1.7;
    background: linear-gradient(135deg, #fff5eb 0%, #ffffff 50%, #fef3e2 100%);
    min-height: 100vh;
}

.qa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

.qa-container h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-family: 'Playfair Display', Georgia, serif;
}

.qa-container h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
    font-family: 'Playfair Display', Georgia, serif;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qa-container h2::before {
    content: '';
    width: 4px;
    height: 2rem;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    border-radius: 2px;
}

.qa-container h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.qa-container p {
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
    color: #4b5563;
    line-height: 1.8;
}

/* ========================================
   INTRODUCTION SECTION
   ======================================== */

.qa-introduction {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.qa-introduction::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
}

.qa-introduction h1 {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-content p {
    text-align: justify;
    hyphens: auto;
    color: #4b5563;
}

/* ========================================
   SECTION CARDS
   ======================================== */

.qa-guidelines,
.qa-exclusions,
.qa-submission-rules,
.qa-editorial-note {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #f97316;
    transition: all 0.3s ease;
}

.qa-guidelines:hover,
.qa-exclusions:hover,
.qa-submission-rules:hover,
.qa-editorial-note:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -2px rgba(0, 0, 0, 0.15);
}

.qa-exclusions {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.qa-editorial-note {
    border-left-color: #6b7280;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

/* ========================================
   LISTS
   ======================================== */

.guidelines-list,
.exclusions-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.guidelines-list li,
.exclusions-list li {
    margin-bottom: 1.25rem;
    padding: 1rem 1rem 1rem 3rem;
    position: relative;
    background: #f9fafb;
    border-radius: 0.5rem;
    border-left: 3px solid #f97316;
    transition: all 0.2s ease;
}

.guidelines-list li:hover,
.exclusions-list li:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.guidelines-list li::before {
    content: "✓";
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: white;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

.exclusions-list li {
    border-left-color: #ef4444;
}

.exclusions-list li::before {
    content: "×";
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    font-size: 1.25rem;
    top: 0.85rem;
}

.guideline-note,
.exclusion-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    border-radius: 0.5rem;
    font-style: italic;
    color: #78350f;
}

/* ========================================
   SUBMISSION RULES
   ======================================== */

.rules-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.rule-item {
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #fef3e2 100%);
    border-radius: 1rem;
    border: 2px solid #fed7aa;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rule-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
}

.rule-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(249, 115, 22, 0.2);
    border-color: #fb923c;
}

.rule-item h3 {
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rule-item h3 i {
    color: #f97316;
    font-size: 1.5rem;
}

.rule-item p {
    margin-bottom: 0;
    color: #4b5563;
}

/* ========================================
   EDITORIAL NOTE
   ======================================== */

.note-emphasis {
    font-weight: 700;
    color: #1f2937;
    font-size: 1.25rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 0.75rem;
    text-align: center;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* ========================================
   SUBMISSION MESSAGES
   ======================================== */

.submission-message {
    padding: 1.5rem;
    margin: 2.5rem 0;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.submission-message.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
    color: #065f46;
}

.submission-message.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    color: #991b1b;
}

.submission-message i {
    font-size: 2rem;
    flex-shrink: 0;
}

.submission-message p {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 500;
}

/* ========================================
   SUBMISSION FORM
   ======================================== */

.qa-submission-form {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 3px solid #f97316;
    position: relative;
    overflow: hidden;
}

.qa-submission-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
}

.qa-submission-form h2 {
    margin-top: 0;
    margin-bottom: 2rem;
    color: #1f2937;
}

.question-form {
    display: grid;
    gap: 2rem;
}

.form-group {
    display: grid;
    gap: 0.75rem;
}

.form-group label {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.0625rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.required {
    color: #ef4444;
    font-size: 1.25rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 200px;
    line-height: 1.7;
}

.help-text {
    font-size: 0.9375rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-text::before {
    content: "ℹ️";
    font-style: normal;
}

.error-message {
    color: #ef4444;
    font-size: 0.9375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #fee2e2;
    border-radius: 0.5rem;
    border-left: 3px solid #ef4444;
}

.error-message::before {
    content: "⚠️";
}

.character-counter {
    text-align: right;
    font-size: 0.9375rem;
    color: #6b7280;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    display: inline-block;
    float: right;
}

.form-actions {
    margin-top: 1.5rem;
}

.btn-submit {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: white;
    padding: 1.25rem 3rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:active {
    transform: translateY(0);
}

/* ========================================
   SECTION DIVIDER
   ======================================== */

.section-divider {
    margin: 5rem 0;
    text-align: center;
    position: relative;
}

.section-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #e5e7eb 20%, #e5e7eb 80%, transparent 100%);
}

.divider-text {
    position: relative;
    display: inline-block;
    padding: 0.75rem 2rem;
    background: white;
    font-size: 1.25rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ========================================
   Q&A ARCHIVE
   ======================================== */

.qa-archive {
    margin-bottom: 4rem;
}

.no-questions {
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.no-questions i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
    display: block;
}

.no-questions p {
    font-size: 1.25rem;
    color: #6b7280;
    margin: 0;
}

.questions-list {
    display: grid;
    gap: 2.5rem;
}

.qa-item {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.qa-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    border-color: #f97316;
}

.qa-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid #f3f4f6;
}

.qa-category {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.qa-date {
    font-size: 0.9375rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.qa-date i {
    color: #f97316;
}

.qa-question,
.qa-answer {
    margin-bottom: 2rem;
}

.qa-question h3,
.qa-answer h3 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qa-question h3::before {
    content: "Q";
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.qa-answer h3::before {
    content: "A";
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.question-text,
.answer-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    text-align: justify;
    hyphens: auto;
    color: #374151;
    padding: 1.5rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 0.75rem;
    border-left: 4px solid #3b82f6;
}

.answer-text {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left-color: #10b981;
}

.question-author {
    margin-top: 1.25rem;
    font-style: italic;
    color: #6b7280;
    font-size: 1rem;
    text-align: right;
    font-weight: 500;
}

/* ========================================
   PAGINATION
   ======================================== */

.qa-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.page-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.page-link:hover {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.page-info {
    font-size: 1.0625rem;
    color: #6b7280;
    font-weight: 600;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .qa-container {
        padding: 1.5rem 1rem;
    }
    
    .qa-container h1 {
        font-size: 2.5rem;
    }
    
    .qa-container h2 {
        font-size: 1.5rem;
    }
    
    .qa-introduction,
    .qa-guidelines,
    .qa-exclusions,
    .qa-submission-rules,
    .qa-editorial-note,
    .qa-submission-form,
    .qa-item {
        padding: 1.5rem;
    }
    
    .rules-content {
        grid-template-columns: 1fr;
    }
    
    .qa-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .qa-pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-submit {
        width: 100%;
    }
    
    .character-counter {
        float: none;
        display: block;
        text-align: center;
    }
}

@media print {
    .qa-submission-form,
    .qa-pagination,
    .submission-message,
    .section-divider {
        display: none;
    }
}