/* ================================================
   LATINBOOK PROFILE V2 - MODERN & STUNNING DESIGN
   Version: 2.0.0
   Date: 16 Mar 2026
   ================================================ */

/* ===========================
   PROFILE HEADER V2
   =========================== */
.profile-header-v2 {
    position: relative;
    margin: 0 0 20px 0;
}

/* Cover Photo Section */
.profile-cover-v2 {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(135deg, #FF6B35, #FF3CAC, #784BA0);
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-cover-v2:hover .cover-image {
    transform: scale(1.05);
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.cover-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.9), transparent);
    pointer-events: none;
}

.cover-edit-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    background: #FFFFFF;
    color: #000000;
    border: none;
    border-radius: 25px;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.8), 0 0 0 2px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

.cover-edit-btn:hover {
    background: #FFFFFF;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 60, 172, 0.4);
}

/* Profile Card */
.profile-card-v2 {
    background: linear-gradient(to bottom, #FFFFFF, #F8F8F8);
    border-radius: 20px;
    margin: -80px 20px 0;
    padding: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 3;
    overflow: hidden;
}

.profile-card-content {
    padding: 25px 30px;
    position: relative;
}

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

.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.profile-avatar-v2 {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 6px solid var(--card-bg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    transition: all 0.3s ease;
}

.avatar-wrapper:hover .profile-avatar-v2 {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 60, 172, 0.4);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FF6B35, #FF3CAC);
    border: 3px solid var(--card-bg);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.avatar-edit-btn:hover {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 60, 172, 0.5);
}

.avatar-status {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    z-index: 2;
}

.avatar-status.online {
    background: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
    animation: pulse-online 2s infinite;
}

@keyframes pulse-online {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.1);
    }
}

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

.user-name-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.user-name {
    font-size: 32px;
    font-weight: 900;
    margin: 0;
    color: #000000;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}

.verified-badge {
    font-size: 20px;
    color: #3B82F6;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.4));
}

.user-username {
    font-size: 17px;
    color: #404040;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: none;
}

.user-bio {
    font-size: 16px;
    line-height: 1.6;
    color: #1A1A1A;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
    text-shadow: none;
}

.user-bio i {
    color: #FF3CAC;
    margin-right: 5px;
}

/* User Meta Info */
.user-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #2A2A2A;
    font-weight: 700;
    text-shadow: none;
}

.meta-item i {
    color: #FF3CAC;
    font-size: 14px;
}

.meta-item a {
    color: #3B82F6;
    text-decoration: none;
    transition: color 0.3s;
}

.meta-item a:hover {
    color: #60A5FA;
    text-decoration: underline;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 2px solid rgba(0, 0, 0, 0.12);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    background: linear-gradient(135deg, #FF6B35, #FF3CAC);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 60, 172, 0.4);
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

.btn-edit-profile,
.btn-share-profile,
.btn-more-options {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-shadow: none;
}

.btn-edit-profile {
    background: linear-gradient(135deg, #FF6B35, #FF3CAC);
    color: #FFFFFF;
    flex: 1;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 60, 172, 0.4);
}

.btn-edit-profile:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 60, 172, 0.6);
}

.btn-share-profile,
.btn-more-options {
    background: #FFFFFF;
    color: #1A1A1A;
    border: 2px solid rgba(0, 0, 0, 0.12);
    width: 48px;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-share-profile:hover,
.btn-more-options:hover {
    background: #F8F8F8;
    transform: translateY(-2px);
    border-color: #FF3CAC;
    box-shadow: 0 4px 12px rgba(255, 60, 172, 0.3);
}

/* Profile Stats Bar */
.profile-stats-v2 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(to bottom, #F5F5F5, #ECECEC);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-item-v2 {
    text-align: center;
}

.stat-item-v2 strong {
    display: block;
    font-size: 24px;
    font-weight: 900;
    color: #000000;
    margin-bottom: 5px;
    text-shadow: none;
}

.stat-item-v2 span {
    font-size: 14px;
    color: #404040;
    font-weight: 700;
    text-shadow: none;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ===========================
   PROFILE TABS V2
   =========================== */
.profile-tabs-v2 {
    display: flex;
    gap: 8px;
    padding: 0 20px;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.profile-tabs-v2::-webkit-scrollbar {
    display: none;
}

.tab-v2 {
    padding: 14px 24px;
    background: #FFFFFF;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    color: #1A1A1A;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tab-v2 i {
    font-size: 16px;
}

.tab-v2:hover {
    background: #F8F8F8;
    border-color: #FF3CAC;
    color: #000000;
    box-shadow: 0 4px 12px rgba(255, 60, 172, 0.2);
    transform: translateY(-1px);
}

.tab-v2.active {
    background: linear-gradient(135deg, #FF6B35, #FF3CAC);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 60, 172, 0.3);
}

/* ===========================
   EDIT PROFILE MODAL
   =========================== */
.edit-profile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.edit-profile-modal.active {
    display: flex;
}

.edit-modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Modal Header */
.edit-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 60, 172, 0.1));
}

.edit-modal-header h2 {
    font-size: 24px;
    margin: 0;
    background: linear-gradient(135deg, #FF6B35, #FF3CAC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-modal-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    background: rgba(255, 60, 172, 0.2);
    transform: rotate(90deg);
}

/* Modal Body */
.edit-modal-body {
    padding: 30px;
}

.edit-section {
    margin-bottom: 30px;
}

.edit-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-section h3 i {
    color: #FF3CAC;
}

/* Cover/Avatar Upload */
.image-upload-area {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.image-upload-area:hover {
    border-color: #FF3CAC;
    background: rgba(255, 60, 172, 0.05);
}

.image-upload-area i {
    font-size: 40px;
    color: #FF3CAC;
    margin-bottom: 10px;
}

.image-upload-area p {
    color: var(--text-dim);
    font-size: 14px;
    margin: 10px 0 0;
}

.image-upload-area input[type="file"] {
    display: none;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF3CAC;
    background: rgba(255, 60, 172, 0.05);
    box-shadow: 0 0 0 4px rgba(255, 60, 172, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Modal Footer */
.edit-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.02);
}

.btn-cancel,
.btn-save {
    padding: 12px 30px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-save {
    background: linear-gradient(135deg, #FF6B35, #FF3CAC);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 60, 172, 0.3);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 60, 172, 0.5);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 768px) {
    .profile-cover-v2 {
        height: 200px;
        border-radius: 0;
    }

    .profile-card-v2 {
        margin: -60px 10px 0;
        border-radius: 16px;
    }

    .profile-card-content {
        padding: 20px;
    }

    .profile-avatar-v2 {
        width: 100px;
        height: 100px;
        border-width: 4px;
    }

    .user-name {
        font-size: 22px;
    }

    .user-bio {
        font-size: 14px;
    }

    .user-meta {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .profile-stats-v2 {
        grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
        padding: 20px 15px;
        gap: 0;
    }

    .stat-item-v2 strong {
        font-size: 16px;
    }

    .stat-item-v2 span {
        font-size: 11px;
    }

    .stat-divider {
        height: 30px;
    }

    .profile-actions {
        flex-direction: column;
    }

    .btn-edit-profile,
    .btn-share-profile,
    .btn-more-options {
        width: 100%;
    }

    .profile-tabs-v2 {
        padding: 0 10px;
    }

    .tab-v2 {
        padding: 12px 16px;
        font-size: 13px;
    }

    .form-group-inline {
        grid-template-columns: 1fr;
    }

    .edit-modal-content {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
    }
}

/* Dark/Light Theme Support */

/* MODO OSCURO - Textos blancos sobre fondo oscuro */
:root:not([data-theme="light"]) .profile-card-v2,
[data-theme="dark"] .profile-card-v2 {
    background: linear-gradient(to bottom, #1A1A1A, #121212);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

:root:not([data-theme="light"]) .user-name,
[data-theme="dark"] .user-name {
    color: #FFFFFF;
    font-weight: 900;
}

:root:not([data-theme="light"]) .user-username,
[data-theme="dark"] .user-username {
    color: #E0E0E0;
}

:root:not([data-theme="light"]) .user-bio,
[data-theme="dark"] .user-bio {
    color: #F5F5F5;
}

:root:not([data-theme="light"]) .meta-item,
[data-theme="dark"] .meta-item {
    color: #E0E0E0;
}

:root:not([data-theme="light"]) .user-meta,
[data-theme="dark"] .user-meta {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

:root:not([data-theme="light"]) .profile-stats-v2,
[data-theme="dark"] .profile-stats-v2 {
    background: linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

:root:not([data-theme="light"]) .stat-item-v2 strong,
[data-theme="dark"] .stat-item-v2 strong {
    color: #FFFFFF;
}

:root:not([data-theme="light"]) .stat-item-v2 span,
[data-theme="dark"] .stat-item-v2 span {
    color: #D0D0D0;
}

:root:not([data-theme="light"]) .tab-v2,
[data-theme="dark"] .tab-v2 {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #E0E0E0;
}

:root:not([data-theme="light"]) .tab-v2:hover,
[data-theme="dark"] .tab-v2:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

:root:not([data-theme="light"]) .social-link,
[data-theme="dark"] .social-link {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

:root:not([data-theme="light"]) .btn-share-profile,
:root:not([data-theme="light"]) .btn-more-options,
[data-theme="dark"] .btn-share-profile,
[data-theme="dark"] .btn-more-options {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

/* MODO CLARO - Textos negros sobre fondo blanco */
[data-theme="light"] .profile-cover-v2 {
    background: linear-gradient(135deg, #FF6B35, #FF3CAC, #784BA0);
}

[data-theme="light"] .profile-card-v2 {
    background: linear-gradient(to bottom, #FFFFFF, #F8F8F8);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .user-name {
    color: #000000;
    font-weight: 900;
}

[data-theme="light"] .user-username {
    color: #404040;
}

[data-theme="light"] .user-bio {
    color: #1A1A1A;
}

[data-theme="light"] .meta-item {
    color: #2A2A2A;
}

[data-theme="light"] .cover-edit-btn {
    background: #FFFFFF;
    color: #000000;
}

[data-theme="light"] .social-link {
    background: #FFFFFF;
    border: 2px solid rgba(0, 0, 0, 0.12);
    color: #000000;
}

[data-theme="light"] .user-meta {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .profile-stats-v2 {
    background: linear-gradient(to bottom, #F5F5F5, #ECECEC);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .stat-item-v2 strong {
    color: #000000;
}

[data-theme="light"] .stat-item-v2 span {
    color: #404040;
}

[data-theme="light"] .tab-v2 {
    background: #FFFFFF;
    border: 2px solid rgba(0, 0, 0, 0.12);
    color: #1A1A1A;
}

[data-theme="light"] .tab-v2:hover {
    background: #F8F8F8;
    color: #000000;
}

[data-theme="light"] .btn-share-profile,
[data-theme="light"] .btn-more-options {
    background: #FFFFFF;
    color: #1A1A1A;
    border: 2px solid rgba(0, 0, 0, 0.12);
}
