/* Pages CSS - 統一管理各頁面的樣式 */

/* ========================================
   About Page Styles
   ======================================== */

.content-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow-color);
}

/* Statistics page has wider container */
#statistics-page .content-container {
    max-width: 900px;
}

.content-container h1 {
    color: var(--accent-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.content-container h2 {
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

.content-container p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: left;
}

.content-container ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 1rem 0 1rem 2rem;
    text-align: left;
    list-style: none;
}

/* Center only the Intro section */
.intro-section {
    text-align: center;
    margin: 0 auto;
    max-width: 800px; /* keep lines readable */
}
.intro-section h2 {
    text-align: center;
}
.content-container .intro-section p {
    text-align: center;  /* override .content-container p { text-align: left; } */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Center feature list section */
.feature-section {
    text-align: center;
}
.feature-section h2 {
    text-align: center;
}
.feature-list {
    text-align: left;
    margin: 1rem auto;
    padding-left: 0;
    display: inline-block;
}

/* Center version section */
.version-section {
    text-align: center;
}
.version-section h2 {
    text-align: center;
}
.version-section p {
    text-align: center;
}

/* ========================================
   Statistics Page Styles
   ======================================== */

.login-prompt {
    text-align: center;
    padding: 3rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin: 2rem 0;
}

.login-prompt h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.login-prompt p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.login-btn {
    background: var(--accent-primary);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: var(--accent-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.stat-card h3 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    color: var(--accent-primary);
    font-size: 2rem;
    font-weight: bold;
}

/* ========================================
   Feedback Page Styles
   ======================================== */

.feedback-description {
    color: var(--text-secondary);
    text-align: center !important;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
}

.form-group .required {
    color: #e74c3c;
}

.form-group select,
.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--accent-primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--accent-secondary);
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    display: none;
}

/* ========================================
   Common Footer Styles (for all pages)
   ======================================== */

footer {
    background: var(--bg-tertiary);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 4rem;
}

footer p:last-child {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Utility class for hidden content */
.hidden {
    display: none;
}


/* ========================================
   Profile Page Styles
   ======================================== */

#profile-page .content-container {
    max-width: 900px;
}

.profile-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-header {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    padding: 40px;
    display: flex;
    align-items: center;
    color: white;
}

.profile-avatar {
    font-size: 80px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 24px;
    flex-shrink: 0;
}

.profile-info h2 {
    color: white;
    font-size: 28px;
    margin: 0;
    font-weight: 600;
}

.profile-email {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 8px 0 0 0;
}

.profile-section {
    padding: 32px 40px;
    border-bottom: 1px solid #e9ecef;
}

.profile-section:last-child {
    border-bottom: none;
}

.profile-section h3 {
    color: var(--text-primary);
    font-size: 20px;
    margin: 0 0 24px 0;
    font-weight: 600;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.profile-item {
    display: flex;
    flex-direction: column;
}

.profile-item label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-value {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
}

.stats-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stat-quick-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-quick-value {
    color: var(--accent-primary);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-quick-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 105, 133, 0.3);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .profile-avatar {
        margin-right: 0;
        margin-bottom: 16px;
        font-size: 60px;
        width: 80px;
        height: 80px;
    }

    .profile-info h2 {
        font-size: 24px;
    }

    .profile-section {
        padding: 24px 20px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stats-quick-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-quick-value {
        font-size: 28px;
    }
}

