/* assets/css/page-common.css */
/* Common styles for inner pages */

/* ========= PAGE LAYOUT ========= */
.page-main {
    min-height: calc(100vh - 80px);
    background: var(--ud-bg, #ffffff);
    padding-top: 24px;
    padding-bottom: 48px;
}

.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========= PAGE HEADER ========= */
.page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.page-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--ud-text-main, #202124);
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-back:hover {
    background: var(--ud-surface-soft, #fff3fd);
    color: var(--ud-primary, #B81B84);
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--ud-text-strong, #111827);
    margin: 0;
}

/* ========= PAGE CONTENT ========= */
.page-content {
    background: var(--ud-surface, #ffffff);
}

.page-section {
    margin-bottom: 32px;
}

.page-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ud-text-strong, #111827);
    margin: 0 0 16px 0;
}

/* ========= PROFILE CARD ========= */
.profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--ud-surface, #ffffff);
    border: 1px solid var(--ud-border-subtle, #e5e7eb);
    border-radius: 12px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ud-surface-soft, #fff3fd);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--ud-text-strong, #111827);
    margin: 0 0 4px 0;
}

.profile-phone {
    font-size: 14px;
    color: var(--ud-text-muted, #6b7280);
    margin: 0;
}

.profile-edit-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid var(--ud-primary, #B81B84);
    border-radius: 8px;
    background: transparent;
    color: var(--ud-primary, #B81B84);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-edit-btn:hover {
    background: var(--ud-primary, #B81B84);
    color: white;
}

/* ========= PROFILE MENU ========= */
.profile-menu {
    border: 1px solid var(--ud-border-subtle, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--ud-surface, #ffffff);
    color: var(--ud-text-main, #202124);
    text-decoration: none;
    border-bottom: 1px solid var(--ud-border-subtle, #e5e7eb);
    transition: all 0.15s ease;
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:hover {
    background: var(--ud-surface-soft, #fff3fd);
}

.profile-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ud-primary, #B81B84);
}

.profile-menu-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.profile-menu-arrow {
    color: var(--ud-text-muted, #6b7280);
}

/* ========= LOGIN PROMPT ========= */
.profile-login-prompt {
    text-align: center;
    padding: 48px 24px;
    background: var(--ud-surface, #ffffff);
    border: 1px solid var(--ud-border-subtle, #e5e7eb);
    border-radius: 12px;
}

.profile-login-prompt p {
    font-size: 16px;
    color: var(--ud-text-muted, #6b7280);
    margin: 0 0 20px 0;
}

/* ========= BUTTONS ========= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: var(--ud-primary, #B81B84);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--ud-primary-dark, #4A0032);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: var(--ud-surface, #ffffff);
    color: var(--ud-primary, #B81B84);
    border: 1px solid var(--ud-primary, #B81B84);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--ud-surface-soft, #fff3fd);
}

/* ========= INFO CARDS ========= */
.info-card {
    padding: 24px;
    background: var(--ud-surface, #ffffff);
    border: 1px solid var(--ud-border-subtle, #e5e7eb);
    border-radius: 12px;
    margin-bottom: 16px;
}

.info-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ud-text-strong, #111827);
    margin: 0 0 8px 0;
}

.info-card-text {
    font-size: 14px;
    color: var(--ud-text-muted, #6b7280);
    line-height: 1.6;
    margin: 0;
}

/* ========= TEXT CONTENT ========= */
.text-content {
    line-height: 1.7;
    color: var(--ud-text-main, #202124);
}

.text-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ud-text-strong, #111827);
    margin: 32px 0 16px 0;
}

.text-content h2:first-child {
    margin-top: 0;
}

.text-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ud-text-strong, #111827);
    margin: 24px 0 12px 0;
}

.text-content p {
    margin: 0 0 16px 0;
    font-size: 15px;
}

.text-content ul, .text-content ol {
    margin: 0 0 16px 0;
    padding-left: 24px;
}

.text-content li {
    margin-bottom: 8px;
    font-size: 15px;
}

/* ========= FAQ ACCORDION ========= */
.faq-list {
    border: 1px solid var(--ud-border-subtle, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid var(--ud-border-subtle, #e5e7eb);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 20px;
    background: var(--ud-surface, #ffffff);
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.faq-question:hover {
    background: var(--ud-surface-soft, #fff3fd);
}

.faq-question-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--ud-text-strong, #111827);
    flex: 1;
    padding-right: 16px;
}

.faq-question-icon {
    color: var(--ud-primary, #B81B84);
    transition: transform 0.2s ease;
}

.faq-item.active .faq-question-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 20px 18px;
    font-size: 14px;
    color: var(--ud-text-muted, #6b7280);
    line-height: 1.6;
    background: var(--ud-surface, #ffffff);
}

.faq-item.active .faq-answer {
    display: block;
}

/* ========= CONTACT FORM ========= */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ud-text-strong, #111827);
    margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--ud-border-subtle, #e5e7eb);
    border-radius: 8px;
    font-size: 15px;
    color: var(--ud-text-main, #202124);
    background: var(--ud-surface, #ffffff);
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--ud-primary, #B81B84);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 640px) {
    .page-main {
        padding-top: 16px;
        padding-bottom: 32px;
    }

    .page-container {
        padding: 0 16px;
    }

    .page-title {
        font-size: 20px;
    }

    .profile-card {
        flex-wrap: wrap;
        padding: 20px;
    }

    .profile-edit-btn {
        width: 100%;
        justify-content: center;
        margin-top: 12px;
    }
}
