/* ============================================
   スマ農ふくしま相談コーナー Q&A Styles
   ============================================ */

/* Container */
.qa-archive-container {
    margin: 0 auto;
}

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

.qa-archive-main,
.single-qa-main {
    background-color: #F5F5F0;
    min-height: 100vh;
}

/* ============================================
   Hero Section
   ============================================ */
.qa-archive-hero-section {
    background: #53834F;
    padding: 20px 20px 40px;
    text-align: center;
    color: white;
    position: relative;
}

/* Breadcrumb */
.qa-breadcrumb {
    font-size: 14px;
    color: white;
    margin-bottom: 30px;
    text-align: left;
}

.qa-breadcrumb .breadcrumb-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.qa-breadcrumb .breadcrumb-link:hover {
    opacity: 0.8;
}

.qa-breadcrumb .breadcrumb-separator {
    margin: 0 10px;
    color: white;
}

.qa-breadcrumb .breadcrumb-current {
    color: white;
}

/* Search Box */
.qa-search-box {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.qa-search-form {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.qa-search-input {
    padding: 10px 20px;
    border: none;
    outline: none;
    font-size: 14px;
    width: 250px;
    background: transparent;
}

.qa-search-input::placeholder {
    color: #999;
}

.qa-search-button {
    padding: 10px 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6B8E6F;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.qa-search-button:hover {
    color: #53834F;
}

.qa-archive-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.1em;
    color: white;
}

.qa-archive-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0;
}

.qa-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e6ae25;
}

/* Description Section */
.qa-description-section {
    background: white;
    padding: 40px 20px;
    text-align: center;
}

.qa-archive-description {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    color: #333;
}

/* ============================================
   Filter Tabs
   ============================================ */
.qa-filter-section {
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.qa-filter-tabs {
    display: flex;
    gap: 0;
}

.qa-tab {
    flex: 1;
    padding: 18px 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    background-color: white;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.qa-tab:hover {
    background-color: #f8f8f8;
    color: #333;
}

.qa-tab.active {
    color: #6B8E6F;
    border-bottom-color: #6B8E6F;
    background-color: #f5f9f6;
}

/* ============================================
   Questions List
   ============================================ */
.qa-list-section {
    padding: 40px 20px;
}

.qa-questions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.qa-question-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.qa-question-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #6B8E6F;
}

.qa-new-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background-color: #FF4444;
    color: white;
    font-size: 13px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
}

.qa-item-link {
    display: block;
    padding: 25px;
    text-decoration: none;
    color: inherit;
}

.qa-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.qa-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qa-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #E0E0E0;
}

.qa-user-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.qa-user-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.qa-post-date {
    font-size: 13px;
    color: #888;
}

.qa-status-badges {
    flex-shrink: 0;
}

.qa-status-badge {
    display: inline-block;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
}

.qa-status-badge.recruiting {
    background-color: #FFF5E6;
    color: #E67E22;
    border: 2px solid #F39C12;
}

.qa-status-badge.solved {
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 2px solid #4CAF50;
}

.qa-question-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.qa-item-link:hover .qa-question-title {
    color: #6B8E6F;
}

.qa-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qa-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    background-color: #F5F5F0;
    color: #666;
    border: 1px solid #D0D0D0;
    border-radius: 16px;
    font-weight: 500;
}

/* ============================================
   No Results
   ============================================ */
.qa-no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
}

.no-results-message {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.no-results-suggestion {
    font-size: 15px;
    color: #666;
}

/* ============================================
   Pagination
   ============================================ */
.qa-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.qa-pagination .page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.qa-pagination .page-numbers li {
    margin: 0;
}

.qa-pagination a,
.qa-pagination .current {
    display: inline-block;
    padding: 10px 16px;
    background-color: white;
    color: #6B8E6F;
    text-decoration: none;
    border: 2px solid #6B8E6F;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.qa-pagination a:hover {
    background-color: #6B8E6F;
    color: white;
}

.qa-pagination .current {
    background-color: #6B8E6F;
    color: white;
}

/* ============================================
   CTA Section
   ============================================ */
.qa-cta-section {
    background: #F5F5F0;
    padding: 60px 20px;
    text-align: center;
}

.qa-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.qa-cta-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #333;
    letter-spacing: 0.05em;
}

.qa-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap;
}

.qa-cta-button {
    display: inline-block;
    padding: 16px 50px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 220px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.login-button {
    background-color: #6B8E6F;
    color: white;
    border: none;
}

.login-button:hover {
    background-color: #5A7D5E;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(107, 142, 111, 0.4);
}

.register-button {
    background-color: #E6AE25;
    color: white;
    border: none;
}

.register-button:hover {
    background-color: #D39E1F;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(230, 174, 37, 0.4);
}

.ask-button {
    background-color: #53834F;
    color: white;
    border: none;
}

.ask-button:hover {
    background-color: #5A7D5E;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(107, 142, 111, 0.4);
}

/* ============================================
   Single Q&A Page Styles
   ============================================ */

/* Breadcrumbs */
.qa-breadcrumbs {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.qa-breadcrumbs a {
    color: #6B8E6F;
    text-decoration: none;
    transition: color 0.3s ease;
}

.qa-breadcrumbs a:hover {
    color: #5A7D5E;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #999;
}

.breadcrumb-current {
    color: #333;
}

/* Content Grid */
.single-qa-content-section {
    padding: 40px 20px 80px;
}

.qa-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.qa-main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Question Card */
.qa-question-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.qa-question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 20px;
}

.qa-user-info-large {
    display: flex;
    align-items: center;
    gap: 20px;
}

.qa-user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #E0E0E0;
}

.qa-user-details-large {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qa-user-name-large {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.qa-post-date-large {
    font-size: 14px;
    color: #888;
}

.qa-status-badge.recruiting-large {
    background-color: #FFF5E6;
    color: #E67E22;
    border: 2px solid #F39C12;
    padding: 10px 22px;
    font-size: 15px;
}

.qa-status-badge.solved-large {
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 2px solid #4CAF50;
    padding: 10px 22px;
    font-size: 15px;
}

.qa-question-title-large {
    font-size: 26px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}

.qa-tags-large {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.qa-tag-large {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    background-color: #F5F5F0;
    color: #666;
    border: 1px solid #D0D0D0;
    border-radius: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.qa-tag-large:hover {
    background-color: #6B8E6F;
    color: white;
    border-color: #6B8E6F;
}

.qa-question-content {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
}

/* Answers Section */
.qa-answers-section {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.qa-answers-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #6B8E6F;
}

.qa-answers-count {
    color: #888;
    font-size: 18px;
    font-weight: normal;
}

.qa-answers-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qa-answer-item {
    padding: 25px;
    background-color: #F9F9F9;
    border-radius: 8px;
    border-left: 4px solid #6B8E6F;
}

.qa-answer-header {
    margin-bottom: 15px;
}

.qa-answer-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qa-answer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #E0E0E0;
}

.qa-answer-user-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.qa-answer-author {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.qa-answer-date {
    font-size: 13px;
    color: #888;
}

.qa-answer-content {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

.qa-no-answers {
    color: #888;
    font-size: 15px;
    padding: 30px;
    text-align: center;
    background-color: #F9F9F9;
    border-radius: 8px;
}

/* Comment Form */
.qa-comment-form-section {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.qa-comment-form-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #6B8E6F;
}

.qa-submit-button {
    padding: 14px 40px;
    background: linear-gradient(135deg, #6B8E6F 0%, #5A7D5E 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qa-submit-button:hover {
    background: linear-gradient(135deg, #5A7D5E 0%, #4A6D4E 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 142, 111, 0.3);
}

.logged-in-as {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* Login Prompt */
.qa-login-prompt {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.qa-login-prompt p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.qa-login-button,
.qa-register-button {
    display: inline-block;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.qa-login-button {
    background-color: #6B8E6F;
    color: white;
}

.qa-login-button:hover {
    background-color: #5A7D5E;
    transform: translateY(-2px);
}

.qa-register-button {
    background-color: #F39C12;
    color: white;
}

.qa-register-button:hover {
    background-color: #E67E22;
    transform: translateY(-2px);
}

/* Sidebar */
.qa-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #6B8E6F;
}

/* Related Questions */
.related-questions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-question-item {
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.related-question-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-question-title {
    font-size: 14px;
    margin-bottom: 8px;
}

.related-question-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-question-title a:hover {
    color: #6B8E6F;
}

.related-status {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
}

.related-status.recruiting {
    background-color: #FFF5E6;
    color: #E67E22;
}

.related-status.solved {
    background-color: #E8F5E9;
    color: #2E7D32;
}

/* Back to Archive */
.back-to-archive .back-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #6B8E6F 0%, #5A7D5E 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.back-to-archive .back-link:hover {
    background: linear-gradient(135deg, #5A7D5E 0%, #4A6D4E 100%);
    transform: translateY(-2px);
}

/* Ask Question Widget */
.ask-question-widget {
    background: linear-gradient(135deg, #F5F9F6 0%, #E8F5E9 100%);
    text-align: center;
}

.widget-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.widget-cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6B8E6F 0%, #5A7D5E 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.widget-cta-button:hover {
    background: linear-gradient(135deg, #5A7D5E 0%, #4A6D4E 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 142, 111, 0.3);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .qa-content-grid {
        grid-template-columns: 1fr;
    }
    
    .qa-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .qa-archive-title {
        font-size: 28px;
    }
    
    .qa-archive-description {
        font-size: 14px;
    }
    
    .qa-filter-tabs {
        flex-wrap: wrap;
    }
    
    .qa-tab {
        flex: 1 1 calc(50% - 5px);
        font-size: 14px;
        padding: 15px 10px;
    }
    
    .qa-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .qa-question-title {
        font-size: 16px;
    }
    
    .qa-question-card {
        padding: 25px 20px;
    }
    
    .qa-question-header {
        flex-direction: column;
    }
    
    .qa-question-title-large {
        font-size: 22px;
    }
    
    .qa-answers-section,
    .qa-comment-form-section,
    .qa-login-prompt {
        padding: 25px 20px;
    }
    
    .qa-cta-buttons {
        flex-direction: column;
    }
    
    .qa-cta-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .qa-archive-hero-section {
        padding: 40px 15px;
    }
    
    .qa-archive-title {
        font-size: 24px;
    }
    
    .qa-tab {
        flex: 1 1 100%;
    }
    
    .qa-item-link {
        padding: 20px;
    }
    
    .qa-user-avatar {
        width: 50px;
        height: 50px;
    }
    
    .qa-user-name {
        font-size: 14px;
    }
    
    .qa-question-title {
        font-size: 15px;
    }
    
    .qa-user-avatar-large {
        width: 60px;
        height: 60px;
    }
    
    .qa-user-name-large {
        font-size: 16px;
    }
    
    .qa-question-title-large {
        font-size: 18px;
    }
    
    .qa-login-button,
    .qa-register-button {
        display: block;
        margin: 10px 0;
        width: 100%;
    }
}

