/* Profil Sayfası Özel Stilleri */

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* --- Profile Banner & Header --- */
.profile-header-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.profile-banner {
    height: 250px;
    background: linear-gradient(45deg, var(--bg-color), rgba(255, 70, 85, 0.2)), url('https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(15, 15, 15, 0.9), transparent);
}

.profile-info-section {
    padding: 0 3rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: -60px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    gap: 2rem;
}

.profile-user-main {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
}

.profile-avatar-container {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.page-profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 22px;
    border: 4px solid var(--bg-color);
    background: #1a1a1a;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1;
}

.profile-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 32px;
    height: 32px;
    background: #23a559; /* Discord Online green */
    border: 6px solid #1c1c1e; /* Creates the dark cutout bite effect */
    border-radius: 50%;
    z-index: 5;
}

.profile-details h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-badge {
    background: linear-gradient(135deg, #ff4655, #ff7a85);
    color: white;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-bio {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    max-width: 400px;
    margin-bottom: 1rem;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.btn-profile-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-profile-action:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-profile-action.primary {
    background: #ff4655;
    border-color: #ff4655;
    color: white;
}

.btn-profile-action.primary:hover {
    background: #ff5c6a;
    box-shadow: 0 5px 15px rgba(255, 70, 85, 0.3);
}

/* --- Profile Content Grid --- */
.profile-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 992px) {
    .profile-content-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Sidebar (Left Column) --- */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1rem;
}

.profile-card-header i {
    color: var(--primary-color);
}

/* Social Links */
.social-links-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--brand-color, rgba(255,255,255,0.2));
    /* color-mix ile hex koda saydamlık ekliyoruz */
    box-shadow: 0 0 10px color-mix(in srgb, var(--brand-color, rgba(255,255,255,0.5)) 50%, transparent);
}

.social-platform {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.social-platform i, .social-platform svg {
    font-size: 1.2rem;
    color: var(--brand-color, inherit);
    transition: color 0.3s ease;
}

.social-username {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}


/* Main Column (Right) */
.profile-main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Favorite Games */
.favorite-games-grid {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.favorite-games-grid::-webkit-scrollbar {
    height: 6px;
}
.favorite-games-grid::-webkit-scrollbar-track {
    background: transparent;
}
.favorite-games-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.fav-game-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    min-width: 120px;
    flex-shrink: 0;
}

.fav-game-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.fav-game-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.fav-game-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.fav-game-hours {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Recent Lobbies */
.recent-lobbies-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-lobby-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.recent-lobby-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.lobby-info-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lobby-game-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.lobby-details h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.lobby-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    gap: 1rem;
}

.lobby-status {
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lobby-status.completed {
    background: rgba(35, 165, 89, 0.1);
    color: #23a559;
    border: 1px solid rgba(35, 165, 89, 0.2);
}

.lobby-status.active {
    background: transparent;
    color: #ff4655;
    border: 1px solid rgba(255, 70, 85, 0.4);
    box-shadow: 0 0 10px rgba(255, 70, 85, 0.15);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff4655;
    box-shadow: 0 0 8px #ff4655;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .profile-info-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 1.5rem 2rem;
    }

    .profile-user-main {
        flex-direction: column;
        align-items: center;
        margin-top: -80px;
    }

    .profile-details h1 {
        justify-content: center;
    }

    .profile-bio {
        margin: 0 auto 1.5rem;
    }

    .profile-actions {
        justify-content: center;
    }
}

/* --- Social Media Box --- */
.social-media-box {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    margin-top: 1rem;
}

/* İnce ve Şık Scrollbar (Kaydırma Çubuğu) */
.custom-scrollbar-mini::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar-mini::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}
.custom-scrollbar-mini::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.custom-scrollbar-mini::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Fix for huge empty space caused by hidden absolute dropdowns in scrollable container */
#extra-platforms-list .custom-select-options {
    display: none !important;
}
#extra-platforms-list .custom-select-options.open {
    display: block !important;
}

/* Premium Animated Founder Badge */
.animated-founder-badge {
    background: linear-gradient(270deg, #ff4655, #f39c12, #8e44ad, #00d2ff, #ff4655);
    background-size: 800% 800%;
    animation: founderGradient 6s ease infinite;
    color: #fff !important;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.45em;
    padding: 0.3em 0.8em;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(255, 70, 85, 0.4);
    font-family: 'Cinzel Decorative', serif;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* Premium Animated Founder Avatar Frame */
.animated-founder-avatar-frame {
    background: linear-gradient(270deg, #ff4655, #f39c12, #8e44ad, #00d2ff, #ff4655);
    background-size: 800% 800%;
    animation: founderGradient 6s ease infinite;
    border-radius: 26px; /* 22px + 4px */
    padding: 4px;
    box-shadow: 0 0 25px rgba(255, 70, 85, 0.4);
}

@keyframes founderGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
