/**
 * User Profile Page Styles - AIMangaMaker.com
 * AIMM-style user profile design
 */

.profile-body {
    background-color: #141414;
}

/* ===== PROFILE HERO SECTION ===== */
.profile-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-top: 68px;
}

.profile-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.profile-hero .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    filter: brightness(0.7);


}

.profile-hero .hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(20, 20, 20, 0.95) 0%,
        rgba(20, 20, 20, 0.3) 50%,
        rgba(20, 20, 20, 0.0) 100%
    );
}

.profile-hero-content { 
    padding: 0 60px 40px;
    z-index: 1;
    margin: 0 auto;
}

/* ===== PROFILE CARD ===== */
.profile-card {
    display: flex;
    align-items: flex-end;
    gap: 30px;
}

.profile-image-container {
    flex-shrink: 0;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.profile-info {
    flex: 1;
    padding-bottom: 10px;
}

.profile-username {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== PROFILE BADGES ===== */
.profile-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.creator-badge {
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}

.user-badge-default {
    background: rgba(255, 255, 255, 0.15);
    color: #e5e5e5;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.private-badge {
    background: rgba(158, 158, 158, 0.2);
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ===== PROFILE BIO ===== */
.profile-bio {
    font-size: 16px;
    line-height: 1.6;
    color: #e5e5e5;
    margin: 0 0 20px;
    max-width: 600px;
}

/* ===== PROFILE STATS ===== */
.profile-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== PROFILE ACTIONS ===== */
.profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-profile.btn-primary {
    background: #e50914;
    color: #fff;
}

.btn-profile.btn-primary:hover {
    background: #f40612;
    transform: translateY(-2px);
}

.btn-profile.btn-secondary {
    background: rgba(109, 109, 110, 0.7);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-profile.btn-secondary:hover {
    background: rgba(109, 109, 110, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ===== PRIVATE PROFILE MESSAGE ===== */
.private-profile-message {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.private-icon {
    font-size: 4rem;
    color: #666;
    margin-bottom: 20px;
}

.private-profile-message h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #e5e5e5;
    margin: 0 0 12px;
}

.private-profile-message p {
    font-size: 1.1rem;
    color: #aaa;
    margin: 0;
}

/* ===== PROFILE MAIN CONTENT ===== */
.profile-main {
    padding: 40px 60px;
}

.profile-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== BIO SECTION ===== */
.bio-section {
    margin-bottom: 40px;
}

.bio-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.bio-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.bio-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #e5e5e5;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bio-card h2 i {
    color: #e50914;
    font-size: 1.4rem;
}

.bio-text {
    font-size: 16px;
    line-height: 1.8;
    color: #d1d1d1;
    margin: 0;
    white-space: pre-wrap;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e5e5e5;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 i {
    color: #e50914;
}

.section-count {
    font-size: 14px;
    color: #aaa;
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-image {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .card-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #000;
    transition: all 0.3s ease;
}

.project-card:hover .play-icon {
    transform: scale(1.1);
}

.card-details {
    padding: 16px;
}

.card-details h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #aaa;
    flex-wrap: wrap;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-meta .rating {
    color: #f5c518;
}

/* ===== PRIVATE SECTION MESSAGE ===== */
.private-section-message {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.private-section-message i {
    font-size: 3rem;
    color: #666;
    margin-bottom: 16px;
    display: block;
}

.private-section-message p {
    font-size: 1.1rem;
    color: #aaa;
    margin: 0;
}

/* ===== MODAL STYLES ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #222;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 1;
    border: 1px solid #444;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #444;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
}

.modal-close {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #e5e5e5;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    border-radius: 6px;
    padding: 12px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #e50914;
    background: rgba(255, 255, 255, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.btn.btn-primary {
    background: #e50914;
    color: #fff;
}

.btn.btn-primary:hover {
    background: #f40612;
}

.btn.btn-primary:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn.btn-outline {
    background: transparent;
    color: #e5e5e5;
    border: 1px solid #666;
}

.btn.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #aaa;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .profile-hero-content {
        padding: 0 40px 30px;
    }

    .profile-main {
        padding: 40px 40px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .profile-hero {
        height: auto;
        min-height: auto;
        margin-top: 60px;
        padding-bottom: 30px;
    }

    .profile-hero-content {
        padding: 0 20px 20px;
        margin-top: 50px;
    }

    .profile-card { 
        align-items: center;
        text-align: center;
        gap: 20px;
        margin-top: 300px;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .profile-username {
        font-size: 1.8rem;
        justify-content: center;
    }

    .profile-badges {
        justify-content: center;
    }

    .profile-bio {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .profile-stats {
        justify-content: center;
    }

    .profile-actions {
        justify-content: center;
    }

    .profile-main {
        padding: 30px 20px;
    }

    .bio-card {
        padding: 20px;
    }

    .bio-card h2 {
        font-size: 1.4rem;
    }

    .bio-text {
        font-size: 15px;
        line-height: 1.6;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .profile-hero .hero-gradient {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
            to top,
            rgba(20, 20, 20, 0.95) 0%,
            rgba(20, 20, 20, 0.3) 50%,
            rgba(20, 20, 20, 0.0) 100%
        );
    }
    .profile-hero .hero-background img {
        filter: brightness(0.9);
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 120px;
        height: 120px;
    }

    .profile-username {
        font-size: 1.5rem;
    }

    .profile-stats {
        gap: 24px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 11px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }
}
