/* Page-specific styles - feed, profile, discover, creator_profile */

/* Feed page */
.feed-container {
    max-width: 680px;
}

.feed-post {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.feed-post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
}

.feed-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.feed-creator-name {
    font-weight: 600;
}

.feed-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.feed-post-content {
    padding: 0 1rem 1rem;
}

.feed-post-media {
    aspect-ratio: 16/9;
    background: var(--bg);
}

.feed-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-post-actions {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.feed-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.feed-action:hover {
    color: var(--primary);
}

/* Profile page */
.profile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
}

.form-input {
    padding: 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:hover:not(:focus) {
    border-color: #3a3a3a;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(174, 140, 252, 0.1);
}

.settings-list {
    display: flex;
    flex-direction: column;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item:hover {
    color: var(--primary);
}

.settings-item i:first-child {
    width: 20px;
    color: var(--text-muted);
}

.settings-item span {
    flex: 1;
}

.settings-item.highlight {
    color: var(--primary);
}

.settings-item.highlight i:first-child {
    color: var(--primary);
}

/* Discover page */
.discover-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    background: var(--bg-hover);
    color: var(--text);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(174, 140, 252, 0.25);
}

.creator-card {
    overflow: hidden;
}

.creator-banner {
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.creator-info {
    padding: 1.25rem;
    text-align: center;
    position: relative;
}

.creator-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 4px solid var(--bg-card);
    margin: -50px auto 1rem;
}

.creator-name {
    margin-bottom: 0.5rem;
}

.creator-bio {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.creator-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.creator-stats i {
    margin-right: 0.25rem;
}

.btn-block {
    width: 100%;
}

/* Creator profile page */
.creator-profile-header {
    position: relative;
    margin-bottom: 2rem;
}

.creator-profile-banner {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
}

.creator-profile-info {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    margin-top: -60px;
    padding: 0 1.5rem;
}

.creator-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 4px solid var(--bg);
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(174, 140, 252, 0.2);
}

.creator-profile-details {
    flex: 1;
    padding-bottom: 0.5rem;
}

.creator-profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.creator-profile-handle {
color: var(--text-muted);
margin-bottom: 0.5rem;
}

.creator-profile-bio {
color: var(--text-muted);
max-width: 600px;
}

.creator-profile-actions {
display: flex;
gap: 0.75rem;
}

.creator-profile-stats {
display: flex;
gap: 2rem;
margin: 1.5rem 0;
padding: 1rem 0;
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
}

.creator-stat {
text-align: center;
}

.creator-stat-value {
font-size: 1.25rem;
font-weight: 700;
}

.creator-stat-label {
font-size: 0.8rem;
color: var(--text-muted);
}

.creator-tabs {
display: flex;
gap: 0.5rem;
margin-bottom: 1.5rem;
}

.creator-tab {
padding: 0.75rem 1.5rem;
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
border-radius: var(--radius-sm);
transition: all var(--transition-fast);
}

.creator-tab:hover {
background: var(--bg-hover);
color: var(--text);
}

.creator-tab.active {
    background: var(--bg-card);
    color: var(--text);
}

/* Profile Page Enhancements (§9.2.5) */
.profile-page .auth-gate {
    padding: 1.5rem;
    text-align: center;
}

.auth-gate .empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.auth-gate-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-gate-benefits span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.auth-gate-benefits i {
    color: var(--success);
}

/* Preferences Card */
.preferences-card {
    margin-top: 1.5rem;
}

.preferences-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.preference-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.preference-info {
    flex: 1;
}

.preference-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.preference-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
    width: 36px;
    height: 20px;
    background: var(--border);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle-switch.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.toggle-switch.active::after {
    transform: translateX(16px);
}

.toggle-switch:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Blocked Creators Card */
.blocked-creators-card {
    margin-top: 1.5rem;
}

/* Profile Loading State - shimmer utilities now in main.css */

/* Profile Page V2 - Compact Design */
.profile-page-v2 {
    max-width: 600px;
    margin: 0 auto;
}

.profile-page-v2 .auth-gate {
    text-align: center;
    padding: 1rem;
}

.profile-page-v2 .auth-gate-content i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.profile-page-v2 .auth-gate-content h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.profile-header-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

.profile-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.profile-info-compact {
    flex: 1;
    min-width: 0;
}

.profile-info-compact h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.profile-email {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.profile-info-skeleton {
    flex: 1;
}

.profile-info-skeleton .skeleton-text {
    height: 1rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Edit Profile Panel */
.profile-edit-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.profile-edit-panel .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.profile-edit-panel .form-group {
    margin-bottom: 0.75rem;
}

.profile-edit-panel .form-group label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.profile-edit-panel .form-input {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.profile-edit-panel .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.settings-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.settings-tile:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.settings-tile i {
    font-size: 1rem;
    color: var(--text-muted);
}

.settings-tile:hover i {
    color: var(--primary);
}

.settings-tile span {
    font-size: 0.75rem;
    text-align: center;
}

/* Preferences Section */
.prefs-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.prefs-section h4 {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pref-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border);
}

.pref-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pref-row span {
    font-size: 0.85rem;
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.quick-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 2rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.15s ease;
}

.quick-links a:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.quick-links a.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
}

.quick-links a.highlight:hover {
    opacity: 0.9;
}

.quick-links a i {
    font-size: 0.8rem;
}

/* Blocked Section */
.blocked-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.blocked-section summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blocked-section summary:hover {
    color: var(--text);
}

.blocked-section summary::marker,
.blocked-section summary::-webkit-details-marker {
    display: none;
}

.blocked-section summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    margin-left: auto;
    transition: transform 0.2s;
}

.blocked-section[open] summary::after {
    transform: rotate(180deg);
}

.blocked-content {
    padding: 0 1rem 1rem;
}

.blocked-creators-empty {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Creators page search */
.creators-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.creators-search {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.creators-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.creators-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.creators-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.creators-search input::placeholder {
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .creators-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .creators-search {
        max-width: none;
    }
}

/* Modal styles now in main.css */

/* Page-specific modal content */
.modal-body .form-group {
    margin-bottom: 1rem;
}

.modal-body .form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Button sizes */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-edit-panel .form-row {
        grid-template-columns: 1fr;
    }
}
