/* /home/siisi/vertex/gallery_app/static/css/profile.css */

/* ===== VARIABLES & BASE STYLES ===== */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --text-dark: #2d3748;
    --text-muted: #6c757d;
    --border-radius: 12px;
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ===== LAYOUT & CONTAINERS ===== */
.container-fluid {
    overflow: visible;
}

.row {
    align-items: flex-start;
}

.col-lg-8,
.col-lg-4 {
    display: flex;
    flex-direction: column;
}

.col-lg-4>.card {
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.col-lg-4 .card:not(:last-child) {
    margin-bottom: 1.5rem;
}

/* ===== PROFILE HEADER ===== */
.profile-gradient-bg {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.profile-gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.profile-header-card {
    background: var(--primary-gradient);
    color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.profile-header-card .card-body {
    position: relative;
    z-index: 2;
}

.profile-avatar {
    position: relative;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
    border-radius: 50%;
}

.verified-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.online-status-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--success-color);
    border: 3px solid white;
    border-radius: 50%;
}

.pulse-dot {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.profile-name {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-bio {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
}

/* ===== PROFILE STATS ===== */
.profile-stats {
    display: flex;
    gap: 2rem;
}

.profile-stats .stat {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.profile-stats .stat:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.profile-stats .stat strong {
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-stats .stat small {
    font-size: 0.8rem;
    opacity: 0.9;
}

.profile-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.profile-meta .website-link a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: var(--transition);
}

.profile-meta .website-link a:hover {
    color: white !important;
    transform: translateY(-1px);
}

/* ===== STAT CARDS ===== */
.stat-card {
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md) !important;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ===== FORM STYLES ===== */
.form-section {
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.form-section h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.checkbox-group {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.form-check-label {
    font-weight: 500;
    color: var(--text-dark);
}

.input-focused {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
}

input.has-value,
textarea.has-value {
    border-color: #43DC80 !important;
    background-color: #f8fff9 !important;
}

.form-check-label.text-success {
    color: #43DC80 !important;
    font-weight: 500;
}

/* ===== ACCORDION STYLES ===== */
.accordion-combined .accordion__header {
    background: var(--primary-gradient);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: var(--transition);
    padding: 1rem 1.25rem;
    border: none;
    cursor: pointer;
}

.accordion-combined .accordion__header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.accordion-combined .accordion__header--icon::before {
    content: "✨";
    margin-right: 10px;
    font-size: 1.2rem;
}

.accordion-combined .accordion__item:nth-child(1) .accordion__header--icon::before {
    content: "🎨";
}

.accordion-combined .accordion__item:nth-child(2) .accordion__header--icon::before {
    content: "⚡";
}

.accordion-combined .accordion__item:nth-child(3) .accordion__header--icon::before {
    content: "🚀";
}

.accordion-combined .accordion__header--text {
    font-weight: 600;
    font-size: 1rem;
}

.accordion-combined .accordion__body {
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin-top: -8px;
    background: #f8f9fa;
    padding: 1.25rem;
}

.accordion-combined .accordion__body--text {
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===== BUTTONS & ACTIONS ===== */
.follow-btn {
    border-radius: 25px;
    padding: 0.5rem 2rem;
    font-weight: 600;
    transition: var(--transition);
    border-width: 2px;
}

.follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.profile-actions {
    margin-top: 1rem;
}

.profile-actions .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.profile-actions .btn:hover {
    transform: translateY(-2px);
}

/* ===== FORM ACTIONS ===== */
.form-actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.form-actions .btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

/* ===== MEDIA GRID ===== */
.profile-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.media-item {
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: none;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.media-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.media-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.media-thumbnail img,
.media-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.media-item:hover .media-thumbnail img,
.media-item:hover .media-thumbnail video {
    transform: scale(1.05);
}

/* ===== UTILITY CLASSES ===== */
.section-header {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.section-header h5 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.empty-state {
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.account-tier-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.media-item {
    animation: fadeInUp 0.6s ease forwards;
}

.media-item:nth-child(1) {
    animation-delay: 0.1s;
}

.media-item:nth-child(2) {
    animation-delay: 0.2s;
}

.media-item:nth-child(3) {
    animation-delay: 0.3s;
}

.media-item:nth-child(4) {
    animation-delay: 0.4s;
}

.media-item:nth-child(5) {
    animation-delay: 0.5s;
}

.media-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 576px) {
    .form-actions {
        flex-direction: row;
    }

    .form-actions .btn-group {
        flex-direction: row;
        width: auto;
    }
}

@media (max-width: 768px) {
    .profile-header-card .card-body {
        text-align: center;
    }

    .profile-stats {
        justify-content: center;
        gap: 1rem;
    }

    .profile-stats .stat {
        padding: 0.5rem 1rem;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .profile-media-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .profile-meta {
        justify-content: center;
        gap: 1rem;
    }

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

    .form-actions .btn-group {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .form-actions .btn-group .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .form-actions .btn-outline-secondary {
        order: 3;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .form-actions {
        padding: 1rem 0;
    }

    .form-actions .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .accordion-combined .accordion__header {
        padding: 1rem;
    }
}

/* ===== DARK MODE SUPPORT ===== */
[data-bs-theme="dark"] .stat-card {
    background: #2d3748;
    border: 1px solid #4a5568;
}

[data-bs-theme="dark"] .info-item {
    border-bottom-color: #4a5568;
}

[data-bs-theme="dark"] .section-title {
    color: #a0aec0;
}

[data-bs-theme="dark"] .section-header h5 {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .media-item {
    background: #2d3748;
    border: 1px solid #4a5568;
}

[data-bs-theme="dark"] .accordion-combined .accordion__header {
    background: linear-gradient(135deg, #4f46e5 0%, #7e22ce 100%);
}

[data-bs-theme="dark"] .accordion-combined .accordion__body {
    background: #1f2937;
    border-color: #4b5563;
    color: #e5e7eb;
}

[data-bs-theme="dark"] .form-actions {
    border-top-color: #4b5563;
}

/* ===== CUSTOM SCROLLBAR ===== */
.profile-media-grid::-webkit-scrollbar {
    width: 6px;
}

.profile-media-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.profile-media-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.profile-media-grid::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}
