/**
 * MoviEase - Profile Sections Styles
 * ✅ Extracted from profile.js inline styles
 * Covers: Account section, Friends, Region, Trigger Warnings, Badges, Subscription
 */

/* ============================================
   SHARED PROFILE UTILITIES
   ============================================ */

.ps__section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #FDFAB0;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ps__subtitle {
    color: #A6C0DD;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.ps__hint {
    color: #A6C0DD;
    font-size: 0.75rem;
    margin: 0.75rem 0 0 0;
    opacity: 0.8;
}

.ps__icon-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ps__icon-text-start {
    display: flex;
    align-items: start;
    gap: 0.5rem;
}

.ps__icon-text-start--wide {
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.ps__col-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ps__col-stack--spaced {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ps__col-stack--wide {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ps__row-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ps__grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.ps__flex-shrink-0 {
    flex-shrink: 0;
}

.ps__flex-1 {
    flex: 1;
    min-width: 0;
}

.ps__arrow {
    color: rgba(176, 212, 227, 0.4);
    font-size: 0.75rem;
}

.ps__arrow--danger {
    color: rgba(231, 76, 60, 0.5);
    font-size: 0.75rem;
}

/* ============================================
   ACCOUNT SECTION
   ============================================ */

.ps__account {
    background: linear-gradient(135deg, rgba(166, 192, 221, 0.2), rgba(139, 163, 184, 0.2));
    border: 1px solid rgba(166, 192, 221, 0.3);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

/* Account link items (Privacy, Terms, etc.) */
.ps__account-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(166, 192, 221, 0.1);
    border: 1px solid rgba(166, 192, 221, 0.2);
    border-radius: 0.5rem;
    color: #A6C0DD;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.ps__account-link:hover {
    background: rgba(166, 192, 221, 0.2);
    border-color: rgba(166, 192, 221, 0.35);
    color: #B0D4E3;
}

.ps__account-link--danger {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.25);
    color: rgba(231, 76, 60, 0.9);
}

.ps__account-link--danger:hover {
    background: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.4);
    color: #e74c3c;
}

/* Attributions */
.ps__attributions {
    margin: 2rem 0 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(166, 192, 221, 0.08), rgba(139, 163, 184, 0.08));
    border: 1px solid rgba(166, 192, 221, 0.15);
    border-radius: 0.75rem;
}

.ps__attributions-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #FDFAB0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ps__attributions-body {
    font-size: 0.8125rem;
    color: #A6C0DD;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ps__tmdb-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #01B4E4;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 3px;
    color: white;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ps__attribution-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.ps__attribution-text a {
    text-decoration: underline;
    font-weight: 600;
}

.ps__attribution-text a.ps__link-tmdb {
    color: #01B4E4;
}

.ps__attribution-text a.ps__link-ddd {
    color: #FDFAB0;
}

.ps__version-text {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Sign out button */
.ps__logout-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #A6C0DD, #8ba3b8);
    border: 2px solid #FDFAB0;
    border-radius: 0.75rem;
    color: #18183A;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(166, 192, 221, 0.3);
    margin-bottom: 1.5rem;
}

.ps__logout-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(166, 192, 221, 0.4);
}

/* ============================================
   FRIENDS SECTION
   ============================================ */

.ps__friends-section {
    background: linear-gradient(135deg, rgba(166, 192, 221, 0.2), rgba(139, 163, 184, 0.2));
    border: 1px solid rgba(166, 192, 221, 0.3);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.ps__friends-list {
    margin-bottom: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.ps__friend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ps__friend-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(166, 192, 221, 0.3), rgba(139, 163, 184, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #FDFAB0;
    flex-shrink: 0;
}

.ps__friend-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #FDFAB0;
}

.ps__friend-code-text {
    color: #A6C0DD;
    font-size: 0.625rem;
}

/* Compact action button (Add Friend, etc.) */
.ps__compact-btn {
    width: 100%;
    padding: 0.6rem;
    background: linear-gradient(135deg, rgba(166, 192, 221, 0.15), rgba(139, 163, 184, 0.15));
    border: 1px solid rgba(166, 192, 221, 0.25);
    border-radius: 0.5rem;
    color: #B0D4E3;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-family: inherit;
}

.ps__compact-btn:hover {
    background: linear-gradient(135deg, rgba(166, 192, 221, 0.25), rgba(139, 163, 184, 0.25));
    border-color: rgba(176, 212, 227, 0.4);
}

.ps__empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #A6C0DD;
    opacity: 0.6;
}

.ps__empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.ps__empty-text {
    font-size: 0.875rem;
    margin: 0;
}

/* ============================================
   BADGES SECTION
   ============================================ */

.ps__badges-loading {
    text-align: center;
    padding: 1rem;
}

.ps__badges-loading-icon {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
}

.ps__badges-loading-text {
    font-size: 0.85rem;
    color: #A6C0DD;
    margin: 0;
}

.ps__badges-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.ps__badges-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #FDFAB0;
    margin-bottom: 0.25rem;
}

.ps__badges-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FDFAB0;
}

.ps__badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.ps__badge-card {
    text-align: center;
    padding: 0.5rem 0.25rem;
    border-radius: 0.5rem;
    transition: transform 0.2s;
}

.ps__badge-icon {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.ps__badge-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: #FDFAB0;
    margin-bottom: 0.125rem;
}

.ps__badge-points {
    font-size: 0.6rem;
    color: #A6C0DD;
}

.ps__badges-progress {
    text-align: center;
    margin-top: 0.75rem;
}

.ps__badges-progress-text {
    font-size: 0.75rem;
    color: #A6C0DD;
}

/* ============================================
   REGION SECTION (grid of region buttons)
   ============================================ */

.ps__region-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

/* ============================================
   TRIGGER WARNINGS SECTION
   ============================================ */

.ps__trigger-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

/* ============================================
   SUBSCRIPTION SECTION
   ============================================ */

.ps__sub-centered {
    text-align: center;
    margin-bottom: 1.5rem;
}

.ps__sub-icon {
    display: block;
    margin-bottom: 0.5rem;
}

.ps__sub-price {
    font-size: 1.875rem;
    font-weight: 700;
    color: #FDFAB0;
    margin: 0 0 0.5rem 0;
}

.ps__sub-period {
    color: rgba(176, 212, 227, 0.7);
    font-size: 0.875rem;
}
