/* ============================================
   Ultimate Member Profile Page Styles (一般マイページ)
   ============================================ */

/* Profile Container */
.um-general-member-profile {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    background-color: #F5F5F0;
}

/* ============================================
   Profile Header (一般マイページ)
   ============================================ */
.um-profile-header-custom {
    background: #53834F;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

.um-profile-title-custom {
    font-size: 32px;
    font-weight: bold;
    color: white;
    margin: 0 0 15px 0;
    letter-spacing: 0.1em;
}

.um-profile-dots-custom {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.um-profile-dot-custom {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E6AE25;
}

/* ============================================
   Profile Content Wrapper
   ============================================ */
.um-profile-content-wrapper {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   Left Column: Profile Card
   ============================================ */
.um-profile-left-column {
    position: relative;
}

.um-profile {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
}

/* Three Dots Menu */
.um-profile-edit-menu {
    position: absolute;
    top: 20px;
    right: 20px;
}

.um-profile-menu-button {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
}

.um-menu-dot {
    width: 4px;
    height: 4px;
    background: #999;
    border-radius: 50%;
}

.um-profile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 100;
}

.um-profile-dropdown.show {
    display: block;
}

.um-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
}

.um-dropdown-item:hover {
    background: #F5F5F0;
}

/* Profile Photo */
.um-profile-photo-wrapper {
    margin: 0 auto 20px;
    width: 100px;
    height: 100px;
}

.um-profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #E0E0E0;
    object-fit: cover;
}

/* Profile Name */
.um-profile-name {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
}

/* Profile Meta */
.um-profile-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.um-meta-item {
    font-size: 14px;
    color: #666;
}

.um-meta-label {
    font-weight: normal;
    color: #666;
}

.um-meta-value {
    color: #333;
}

/* Divider */
.um-profile-divider {
    height: 1px;
    background: #E0E0E0;
    margin: 20px 0;
}

/* Profile Bio */
.um-profile-bio {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    text-align: left;
    margin-bottom: 25px;
    min-height: 60px;
}

.um-bio-empty {
    color: #999;
    font-style: italic;
}

/* ============================================
   Profile Stats (質問数・回答数)
   ============================================ */
.um-profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.um-stat-box {
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
}

.um-stat-box.questions {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
}

.um-stat-box.answers {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
}

.um-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}

.um-stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.um-stat-box.questions .um-stat-value {
    color: #2E7D32;
}

.um-stat-box.answers .um-stat-value {
    color: #E65100;
}

.um-stat-unit {
    font-size: 16px;
    font-weight: normal;
    margin-left: 4px;
}

/* ============================================
   Right Column: Activity List
   ============================================ */
.um-profile-right-column {
    min-height: 400px;
}

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

/* Activity Tabs */
.um-activity-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #E0E0E0;
    background: white;
}

.um-activity-tab {
    flex: 1;
    padding: 18px 20px;
    background: white;
    border: none;
    color: #666;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.um-activity-tab:hover {
    background: #F9F9F9;
    color: #5BA55D;
}

.um-activity-tab.active {
    color: #5BA55D;
    background: white;
}

.um-activity-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #5BA55D;
}

/* Activity Items Container */
.um-activity-items {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Activity Item Card */
.um-activity-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.um-activity-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Avatar */
.um-activity-avatar {
    flex-shrink: 0;
}

.um-activity-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #E0E0E0;
}

/* Content */
.um-activity-content {
    flex: 1;
    min-width: 0;
}

.um-activity-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.um-activity-author {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.um-activity-type {
    font-size: 12px;
    color: #5BA55D;
    font-weight: 500;
    padding: 3px 8px;
    background: #E8F5E9;
    border-radius: 4px;
}

.um-activity-date {
    font-size: 13px;
    color: #999;
    margin-left: auto;
}

/* Title */
.um-activity-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.um-activity-title a {
    color: #5BA55D;
    text-decoration: underline;
    transition: all 0.3s ease;
    cursor: pointer;
}

.um-activity-title a:hover {
    color: #4a8a4c;
    text-decoration: underline;
}

/* Tags and Status */
.um-activity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.um-activity-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #E8F5E9;
    color: #2E7D32;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #C8E6C9;
}

/* Status Badge (回答募集中) */
.um-activity-status {
    display: inline-block;
    padding: 6px 12px;
    background: #FFF3E0;
    color: #E65100;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #FFE0B2;
    margin-left: auto;
}

/* Excerpt (for answers) */
.um-activity-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-top: 8px;
}

/* Empty State */
.um-activity-empty {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.um-activity-empty p {
    font-size: 16px;
    margin: 0;
}

/* ============================================
   その他投稿セクション
   ============================================ */
.um-other-posts-section {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    text-align: center;
}

.um-other-posts-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 25px 0;
    text-align: center;
}

.um-other-posts-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-bottom: 25px;
}

.um-post-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 5px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.um-post-button-green {
    background: linear-gradient(135deg, #6B8E6F 0%, #53834F 100%);
}

.um-post-button-yellow {
    background: linear-gradient(135deg, #F4BD4A 0%, #E6AE25 100%);
}

.um-post-button-label {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: white;
}

.um-post-button-action {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.um-post-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.um-other-posts-description {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #42210B;
    line-height: 1.8;
    margin: 0;
    text-align: center;
}

/* ============================================
   CTA Section (質問してみる) - Figma Design
   ============================================ */
.um-profile-cta-section {
    background: transparent;
    padding: 60px 40px;
    margin: 0 auto 40px auto;
    max-width: 1550px;
}

.um-cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 100%;
}

.um-cta-title {
    font-family: 'Kulim Park', 'Noto Sans JP', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #42210b;
    line-height: 81px;
    letter-spacing: 2.4px;
    margin: 0;
    text-align: left;
    white-space: pre-line;
}

.um-cta-button {
    justify-content: center;
    padding: 25px 120px;
    background: #51945c;
    color: white;
    text-decoration: none;
    border-radius: 28.728px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 47px;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 500px;
}

.um-cta-button:hover {
    background: #478f4f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(81, 148, 92, 0.3);
}

/* ============================================
   Corporate Member Styles
   ============================================ */
.corporate-header {
    background: linear-gradient(135deg, #E6AE25 0%, #F4BD4A 100%);
}

.corporate-info-section {
    margin-bottom: 20px;
    text-align: left;
}

.corporate-info-label {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.corporate-info-value {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

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

@media (max-width: 1024px) {
    .um-profile-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .um-profile-left-column {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .um-cta-title {
        font-size: 36px;
        line-height: 1.8;
        letter-spacing: 1.8px;
    }
    
    .um-cta-button {
        font-size: 48px;
        padding: 30px 80px;
        min-width: 600px;
    }
}

@media (max-width: 768px) {
    .um-profile-header-custom {
        padding: 30px 15px;
    }
    
    .um-profile-title-custom {
        font-size: 24px;
    }
    
    .um-profile-content-wrapper {
        padding: 30px 15px;
        gap: 25px;
    }
    
    .um-profile {
        padding: 25px 20px;
    }
    
    .um-profile-stats {
        gap: 12px;
    }
    
    .um-stat-value {
        font-size: 28px;
    }
    
    .um-other-posts-section {
        padding: 25px 20px;
        margin-top: 15px;
    }
    
    .um-other-posts-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .um-other-posts-buttons {
        flex-direction: column;
    }
    
    .um-post-button {
        padding: 20px 15px;
    }
    
    .um-post-button-label {
        font-size: 13px;
    }
    
    .um-post-button-action {
        font-size: 18px;
    }
    
    .um-other-posts-description {
        font-size: 11px;
    }
    
    .um-activity-tabs {
        flex-direction: row;
    }
    
    .um-activity-tab {
        font-size: 14px;
        padding: 14px 15px;
    }
    
    .um-activity-items {
        padding: 15px;
    }
    
    .um-activity-item {
        padding: 15px;
    }
    
    .um-activity-header {
        flex-wrap: wrap;
    }
    
    .um-activity-date {
        margin-left: 0;
        width: 100%;
    }
    
    .um-activity-status {
        position: absolute;
        top: 15px;
        right: 15px;
        margin-left: 0;
    }
    
    .um-profile-cta-section {
        padding: 40px 20px;
        margin: 0 0 30px 0;
    }
    
    .um-cta-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .um-cta-title {
        font-size: 28px;
        line-height: 1.8;
        letter-spacing: 1.4px;
        text-align: center;
    }
    
    .um-cta-button {
        padding: 20px 50px;
        font-size: 24px;
        min-width: auto;
        min-height: auto;
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .um-profile-title-custom {
        font-size: 20px;
    }
    
    .um-profile-dots-custom {
        gap: 8px;
    }
    
    .um-profile-dot-custom {
        width: 10px;
        height: 10px;
    }
    
    .um-profile-name {
        font-size: 20px;
    }
    
    .um-profile-photo-wrapper,
    .um-profile-photo {
        width: 80px;
        height: 80px;
    }
    
    .um-stat-value {
        font-size: 24px;
    }
    
    .um-stat-label {
        font-size: 12px;
    }
    
    .um-activity-tab {
        font-size: 13px;
        padding: 12px 10px;
    }
    
    .um-other-posts-section {
        padding: 20px 15px;
    }
    
    .um-other-posts-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .um-other-posts-buttons {
        flex-direction: column;
    }
    
    .um-post-button {
        padding: 18px 12px;
    }
    
    .um-post-button-label {
        font-size: 12px;
    }
    
    .um-post-button-action {
        font-size: 16px;
    }
    
    .um-other-posts-description {
        font-size: 10px;
        line-height: 1.6;
    }
    
    .um-profile-cta-section {
        padding: 30px 15px;
        margin: 0 0 25px 0;
    }
    
    .um-cta-content {
        gap: 25px;
    }
    
    .um-cta-title {
        font-size: 22px;
        line-height: 1.6;
        letter-spacing: 1px;
    }
    
    .um-cta-button {
        padding: 16px 40px;
        font-size: 20px;
        max-width: 100%;
    }
}
