/* ============================================================================
   Arwah Profile Shell Styles
   ============================================================================ */

/* Profile Container */
.profile-main {
    min-height: calc(100vh - 200px);
    padding: 32px 0;
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid #E0E0E0;
    margin-bottom: 32px;
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D7C1A9 0%, #8D6E63 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Scheherazade New', serif;
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-family: 'Scheherazade New', serif;
    font-size: 28px;
    font-weight: 700;
    color: #3E2723;
    margin: 0 0 8px 0;
}

.profile-bio {
    font-family: 'Markazi Text', serif;
    font-size: 18px;
    color: #757575;
    margin: 0;
}

.profile-actions {
    flex-shrink: 0;
}

/* Profile Tabs - Segmented Control Style */
.profile-tabs {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(215, 193, 169, 0.15);
    border-radius: 12px;
    margin-bottom: 32px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--color-divider);
}

.profile-tabs::-webkit-scrollbar {
    height: 4px;
}

.profile-tabs::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 2px;
}

.tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-family: var(--font-ui);
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text-body);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--color-text-title);
    background: rgba(215, 193, 169, 0.3);
}

.tab-btn.active {
    background: var(--color-accent);
    color: white;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.tab-btn:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Tab Content */
.profile-content {
    position: relative;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Layouts */
.library-section,
.journey-section,
.mood-section,
.notes-section,
.consultation-section {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-family: 'Scheherazade New', serif;
    font-size: 24px;
    font-weight: 700;
    color: #3E2723;
    margin: 0;
}

.section-description {
    font-family: 'Markazi Text', serif;
    font-size: 16px;
    color: #757575;
    margin: 0 0 16px 0;
}

/* Grid Layouts */
.poems-grid,
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.history-list,
.notes-list,
.consultations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Card Components */
.poem-card,
.collection-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 246, 240, 0.85) 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid rgba(168, 155, 141, 0.2);
}

.poem-card:hover,
.collection-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--color-accent);
}

.poem-card h3,
.collection-card h3 {
    font-family: 'Scheherazade New', serif;
    font-size: 20px;
    font-weight: 700;
    color: #3E2723;
    margin: 0 0 8px 0;
}

.poem-date,
.collection-date {
    font-family: 'Markazi Text', serif;
    font-size: 14px;
    color: #9E9E9E;
}

/* History Items */
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    border: 1px solid rgba(168, 155, 141, 0.15);
}

.history-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.history-date {
    font-family: 'Markazi Text', serif;
    font-size: 14px;
    color: #9E9E9E;
}

/* Consultation Items */
.consultation-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(168, 155, 141, 0.15);
    transition: all 0.2s ease;
}

.consultation-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.consultation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.consultation-topic {
    font-family: 'Markazi Text', serif;
    font-size: 16px;
    font-weight: 700;
    color: #5D4037;
}

.consultation-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-family: 'Markazi Text', serif;
    font-size: 14px;
    font-weight: 700;
}

.consultation-status.status-new {
    background: rgba(212, 165, 116, 0.2);
    color: var(--color-accent-hover);
}

.consultation-status.status-in_review {
    background: rgba(206, 128, 64, 0.2);
    color: var(--color-love);
}

.consultation-status.status-answered {
    background: rgba(76, 175, 80, 0.2);
    color: #2E7D32;
}

.consultation-status.status-closed {
    background: rgba(168, 155, 141, 0.2);
    color: var(--color-text-body);
}

.consultation-message {
    font-family: 'Markazi Text', serif;
    font-size: 16px;
    line-height: 1.6;
    color: #424242;
    margin: 0 0 8px 0;
}

.consultation-date {
    font-family: 'Markazi Text', serif;
    font-size: 14px;
    color: #9E9E9E;
    margin: 0;
}

/* Note Items */
.note-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(168, 155, 141, 0.15);
    transition: all 0.2s ease;
}

.note-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.note-text {
    font-family: 'Markazi Text', serif;
    font-size: 16px;
    line-height: 1.8;
    color: #424242;
    margin: 0 0 12px 0;
}

.note-meta {
    font-family: 'Markazi Text', serif;
    font-size: 14px;
    color: #9E9E9E;
    margin: 0;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    height: 44px;
    border-radius: 8px;
    font-family: var(--font-ui);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-text-title);
    border: 1px solid var(--color-divider);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--color-accent);
}

.btn-text {
    background: transparent;
    color: var(--color-text-title);
    padding: 0 16px;
}

.btn-text:hover {
    background: rgba(215, 193, 169, 0.15);
}

.btn-large {
    height: 52px;
    padding: 0 32px;
    font-size: 20px;
}

.btn-full {
    width: 100%;
}

/* Links */
.link-primary {
    font-family: var(--font-ui);
    font-size: 16px;
    color: var(--color-accent-hover);
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-primary:hover {
    color: var(--color-text-title);
}

.link-secondary {
    font-family: var(--font-ui);
    font-size: 14px;
    color: var(--color-text-body);
    text-decoration: none;
    transition: color 0.2s ease;
    opacity: 0.8;
}

.link-secondary:hover {
    color: var(--color-text-title);
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .profile-info {
        text-align: center;
    }
    
    .profile-name {
        font-size: 24px;
    }
    
    .profile-tabs {
        gap: 4px;
        padding: 4px;
    }
    
    .tab-btn {
        min-width: 100px;
        padding: 10px 16px;
        font-size: 16px;
    }
    
    .poems-grid,
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .profile-main {
        padding: 16px 0;
    }
    
    .avatar-circle {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }
    
    .profile-name {
        font-size: 20px;
    }
    
    .profile-bio {
        font-size: 16px;
    }
}
