/**
 * PleChat - Premium Galactic Profile Styles
 */

.premium-profile-body {
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    padding-bottom: 120px;
    overflow-x: hidden;
}

.premium-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.premium-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-top: 10px;
}

.header-btn {
    width: 45px;
    height: 45px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

/* Avatar Section */
.premium-avatar-section {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.orbit-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-ring {
    position: absolute;
    inset: -5px;
    border: 2px solid transparent;
    border-top-color: var(--accent-primary);
   
    border-radius: 50%;
    animation: rotate 4s linear infinite;
    box-shadow: var(--shadow-glow);
}

.avatar-main {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: relative;
    padding: 4px;
    background: var(--bg-surface);
}

.avatar-main img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder-large {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 800;
}

.verified-badge-large {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: var(--bg-surface);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* User Info */
.premium-user-info {
    text-align: center;
}

.premium-name {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 5px;
}

.premium-handle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Cards & Forms */
.bio-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.card-icon-wrapper {
    width: 45px;
    height: 45px;
    background: var(--bg-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

.premium-input, .premium-textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.premium-input:disabled {
    opacity: 0.5;
}

.premium-textarea {
    min-height: 100px;
    resize: none;
}

.premium-input:focus, .premium-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-surface);
}

.char-count {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.premium-save-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 30px;
    color: var(--text-inverse);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.premium-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(108, 99, 255, 0.4);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .premium-container { padding: 15px; }
    .avatar-main { width: 160px; height: 160px; }
    .orbit-container { width: 180px; height: 180px; }
}

.buy-plecoins-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 20px;
    color: #f59e0b;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.05);
}

.buy-plecoins-btn:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15), 0 0 8px rgba(245, 158, 11, 0.1);
}

.buy-plecoins-btn svg {
    transition: transform 0.3s ease;
}

.buy-plecoins-btn:hover svg {
    transform: rotate(90deg);
}

/* Copy Link Hover Animation */
.premium-personal-link:hover {
    background: var(--bg-hover) !important;
    border-color: var(--accent-primary) !important;
    transform: translateY(-1px);
}

.premium-personal-link:active {
    transform: translateY(1px);
}

.premium-personal-link:hover .copy-badge {
    background: var(--accent-primary) !important;
    color: var(--text-inverse) !important;
}

/* Layout adaptado al mockup */
.profile-main-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    width: 100%;
}

.profile-avatar-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2.5px solid var(--accent-secondary);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    position: relative;
}

.profile-avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-ring .status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2.5px solid var(--accent-secondary);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Caja de enlace al estilo del mockup */
.copy-profile-link-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 15px 0;
    padding: 4px 4px 4px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-profile-link-container:hover {
    background: var(--bg-hover);
    border-color: var(--accent-secondary);
    transform: translateY(-1px);
}

.copy-profile-link-container .copy-badge {
    font-size: 0.8rem;
    background: rgba(94, 217, 185, 0.15);
    color: var(--accent-secondary);
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 700;
    transition: all 0.2s ease;
}

/* Follow Button Custom Redesign */
.follow-btn {
    width: 100% !important;
    padding: 8px 16px !important;
    border: 1.5px solid var(--accent-secondary) !important;
    border-radius: 20px !important;
    color: var(--accent-secondary) !important;
    background: transparent !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
}

.follow-btn:hover {
    background: rgba(94, 217, 185, 0.08) !important;
    color: var(--accent-secondary) !important;
}

.follow-btn.following {
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
    background: var(--bg-hover) !important;
}

/* Masonry Grid */
.publications-masonry {
    column-count: 2;
    column-gap: 12px;
    width: 100%;
}

.publication-grid-item {
    break-inside: avoid;
    margin-bottom: 12px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    width: 100%;
}

.publication-grid-item img,
.publication-grid-item video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.publication-grid-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.grid-item-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 4;
}

.publication-grid-item:hover .grid-item-hover-overlay {
    opacity: 1;
}

.grid-item-hover-overlay .stat-metric {
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Sobrescribir tema claro para perfil */
[data-theme="light"] .premium-profile-body {
    background: #FAF8F5;
    color: #1A1A1A;
}

[data-theme="light"] .premium-container {
    background: #FAF8F5;
}

[data-theme="light"] .copy-profile-link-container {
    background: #F0EDE6;
    border-color: #E2DDD5;
}

[data-theme="light"] .profile-avatar-ring {
    background: #FAF8F5;
    border-color: var(--accent-secondary);
}

[data-theme="light"] .profile-avatar-ring .status-dot {
    background: #fff;
    border-color: var(--accent-secondary);
}

[data-theme="light"] .publication-grid-item {
    background: #ffffff;
    border-color: #E2DDD5;
}

[data-theme="light"] .premium-personal-link {
    background: #F0EDE6;
    border-color: #E2DDD5;
}

[data-theme="light"] .bio-card {
    background: #ffffff;
    border-color: #E2DDD5;
}

[data-theme="light"] .premium-input,
[data-theme="light"] .premium-textarea {
    background: #FAF8F5;
    border-color: #E2DDD5;
    color: #1A1A1A;
}

[data-theme="light"] .premium-input:focus,
[data-theme="light"] .premium-textarea:focus {
    background: #ffffff;
    border-color: var(--accent-secondary);
}

