/* Discord Tarzı Profil Kartı */
.profile-card-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.profile-card-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.profile-card {
    width: 340px;
    background: #1e1f22;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    position: relative;
}

.profile-card.turbo {
    background: linear-gradient(135deg, #1e1f22 0%, #2a1f35 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.4), 0 0 60px rgba(255, 215, 0, 0.2);
}

/* Banner */
.profile-card-banner {
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
    position: relative;
    overflow: hidden;
}

.profile-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card-banner.no-banner {
    background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
}

/* Turbo banner efekti */
.profile-card.turbo .profile-card-banner {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ff8c00 100%);
    position: relative;
}

.profile-card.turbo .profile-card-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Avatar Container */
.profile-card-avatar-container {
    position: relative;
    padding: 0 20px;
    margin-top: -35px;
}

.profile-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 5px solid #1e1f22;
    background: #2b2d31;
    position: relative;
    overflow: hidden;
}

.profile-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Turbo avatar efekti */
.profile-card.turbo .profile-card-avatar {
    border-color: #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.7), 0 0 40px rgba(255, 215, 0, 0.3);
    animation: avatarGlow 2s ease-in-out infinite alternate;
    position: relative;
}

.profile-card.turbo .profile-card-avatar::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    background-size: 200% 200%;
    animation: gradientRotate 3s linear infinite;
    z-index: -1;
    opacity: 0.5;
}

@keyframes avatarGlow {
    0% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 35px rgba(255, 215, 0, 0.2);
    }
    100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 50px rgba(255, 215, 0, 0.4);
    }
}

@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Status indicator */
.profile-card-status {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 4px solid #232428;
    background: #23a55a;
    z-index: 2;
}

.profile-card-status.offline {
    background: #80848e;
}

.profile-card-status.idle {
    background: #f0b232;
}

.profile-card-status.dnd {
    background: #f23f43;
}

/* Profile Info */
.profile-card-info {
    padding: 16px 20px 20px;
}

.profile-card-username-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.profile-card-username {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    word-break: break-word;
}

.profile-card-turbo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ff8c00 100%);
    color: #000;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 3px 12px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.2);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 12px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(255, 215, 0, 0.7), 0 0 30px rgba(255, 215, 0, 0.3);
    }
}

.profile-card-turbo-badge svg {
    width: 13px;
    height: 13px;
}

/* Divider */
.profile-card-divider {
    height: 1px;
    background: #3a3c42;
    margin: 12px 0;
}

.profile-card.turbo .profile-card-divider {
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
}

/* Section */
.profile-card-section {
    margin-bottom: 0;
}

.profile-card-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #949ba4;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.8px;
}

.profile-card-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    transition: all 0.2s ease;
}

.profile-card-detail:hover {
    transform: translateX(2px);
}

.profile-card-detail-icon {
    width: 18px;
    height: 18px;
    color: #949ba4;
    flex-shrink: 0;
}

.profile-card-detail-text {
    font-size: 14px;
    color: #dbdee1;
    word-break: break-word;
    font-weight: 400;
}

/* Turbo expiry badge */
.profile-card-turbo-expiry {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.15));
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 10px;
    font-size: 13px;
    color: #ffd700;
    margin-top: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.profile-card-turbo-expiry svg {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
}

/* Close button */
.profile-card-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.profile-card-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.profile-card-close svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    .profile-card {
        width: 90%;
        max-width: 340px;
    }
}

/* Bio Section */
.profile-card-bio-section {
    padding: 0 16px 16px 16px;
}

.profile-card-bio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.profile-card-bio-edit-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #b5bac1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.profile-card-bio-edit-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.profile-card-bio-display {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    min-height: 40px;
}

.profile-card-bio-text {
    color: #b5bac1;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    min-height: 40px;
}

.profile-card-bio-edit {
    margin-top: 8px;
}

.profile-card-bio-edit textarea,
.profile-card-bio-textarea {
    width: 100%;
    min-height: 80px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    color: #ffffff;
    font-size: 14px;
    resize: none;
    outline: none;
    font-family: inherit;
}

.profile-card-bio-textarea:focus {
    border-color: #5865f2;
}

.profile-card-bio-edit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.profile-card-bio-counter {
    font-size: 11px;
    color: #72767d;
    margin-right: auto;
}

.profile-card-bio-cancel-btn,
.profile-card-bio-save-btn,
.profile-card-bio-cancel,
.profile-card-bio-save {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.profile-card-bio-cancel-btn,
.profile-card-bio-cancel {
    background: transparent;
    color: #ffffff;
}

.profile-card-bio-cancel-btn:hover,
.profile-card-bio-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-card-bio-save-btn,
.profile-card-bio-save {
    background: #5865f2;
    color: #ffffff;
}

.profile-card-bio-save-btn:hover,
.profile-card-bio-save:hover {
    background: #4752c4;
}

.profile-card-bio-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Turbo user bio styles */
.profile-card.turbo .profile-card-bio-section {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.05), rgba(245, 87, 108, 0.05));
}

.profile-card.turbo .profile-card-bio-edit-btn:hover {
    background: rgba(240, 147, 251, 0.2);
    color: #f093fb;
}

.profile-card.turbo .profile-card-bio-save-btn,
.profile-card.turbo .profile-card-bio-save {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.profile-card.turbo .profile-card-bio-save-btn:hover,
.profile-card.turbo .profile-card-bio-save:hover {
    background: linear-gradient(135deg, #d97de9, #e04055);
}