/*
 * Profile page themes – Player (game) vs Publisher (code)
 * Arka plan: siyah ton + desen (oyun vs kod) dolu ve fark edilir
 * Sosyal ikonlar: yoksa gri/pasif, varsa yeşil/tıklanabilir
 */

/* ========== PLAYER – For Players / oyuncu sayfası ile aynı koyu yeşil-orman hattı + banner ========== */
.profile-theme--player {
    position: relative;
    min-height: 100vh;
    padding: 2rem 0 3rem;
    background: #020503;
    overflow: hidden;
}

.profile-theme--player::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(180deg, rgba(2, 6, 4, 0.94) 0%, rgba(2, 8, 5, 0.82) 38%, rgba(2, 6, 4, 0.94) 100%),
        radial-gradient(ellipse 90% 55% at 50% -5%, rgba(52, 211, 153, 0.1), transparent 50%),
        url('/assets/images/for_player_banner.png');
    background-size: 100% 100%, 100% 100%, min(920px, 100vw) auto;
    background-position: 0 0, 0 0, center -6%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.profile-theme--player::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(52, 211, 153, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 211, 153, 0.06) 1px, transparent 1px),
        repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03) 0, transparent 2px);
    background-size: 20px 20px, 20px 20px, 22px 22px;
    pointer-events: none;
    z-index: 0;
}

.profile-theme--player .container {
    position: relative;
    z-index: 1;
}

.profile-theme--player .card {
    background: linear-gradient(165deg, rgba(15, 27, 46, 0.95) 0%, rgba(11, 18, 32, 0.98) 100%);
    border: 1px solid rgba(107, 207, 62, 0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(107, 207, 62, 0.05);
}

.profile-theme--player .card:hover {
    border-color: rgba(107, 207, 62, 0.35);
    box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 0 20px rgba(107, 207, 62, 0.08);
}

.profile-theme--player .badge.bg-primary {
    background: linear-gradient(135deg, #6BCF3E 0%, #4a9e2a 100%) !important;
    box-shadow: 0 2px 8px rgba(107, 207, 62, 0.35);
}

.profile-theme--player .rank-badge {
    background: linear-gradient(135deg, rgba(244, 196, 48, 0.25) 0%, rgba(244, 196, 48, 0.1) 100%);
    color: var(--accent-yellow);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(244, 196, 48, 0.3);
}

/* ========== PUBLISHER – For Publishers ile aynı koyu lacivert / cyan hattı + banner ========== */
.profile-theme--publisher {
    position: relative;
    min-height: 100vh;
    padding: 2rem 0 3rem;
    background: #03060f;
    overflow: hidden;
    box-shadow: inset 3px 0 0 rgba(56, 189, 248, 0.18);
}

.profile-theme--publisher::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(180deg, rgba(3, 8, 18, 0.94) 0%, rgba(4, 10, 22, 0.82) 40%, rgba(3, 8, 18, 0.95) 100%),
        radial-gradient(ellipse 80% 50% at 40% 15%, rgba(37, 99, 235, 0.1), transparent 52%),
        url('/assets/images/for_publisher_banner.png');
    background-size: 100% 100%, 100% 100%, min(920px, 100vw) auto;
    background-position: 0 0, 0 0, center -6%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.profile-theme--publisher::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, rgba(56, 189, 248, 0.08) 0, transparent 2px),
        linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px);
    background-size: 28px 100%, 100% 20px;
    background-position: 0 0, 0 0;
    pointer-events: none;
    z-index: 0;
}

.profile-theme--publisher .container {
    position: relative;
    z-index: 1;
}

.profile-theme--publisher .card {
    background: linear-gradient(165deg, rgba(22, 27, 34, 0.97) 0%, rgba(13, 17, 23, 0.99) 100%);
    border: 1px solid rgba(56, 139, 253, 0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(56, 139, 253, 0.06);
}

.profile-theme--publisher .card:hover {
    border-color: rgba(56, 139, 253, 0.35);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 24px rgba(56, 139, 253, 0.08);
}

.profile-theme--publisher .badge.bg-success {
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%) !important;
    box-shadow: 0 2px 8px rgba(35, 134, 54, 0.4);
    font-family: ui-monospace, monospace;
    letter-spacing: 0.02em;
}

.profile-theme--publisher .card-title {
    font-family: ui-monospace, 'SF Mono', monospace;
    letter-spacing: 0.02em;
    color: #e6edf3;
}

.profile-theme--publisher .list-group-item a {
    font-family: ui-monospace, monospace;
    font-weight: 600;
}

.profile-theme--publisher .profile-page .text-muted {
    color: #8b949e !important;
}

.profile-theme--publisher main,
.profile-theme--player main {
    background: transparent !important;
}

/* ========== Sosyal medya ikonları: pasif gri / aktif yeşil ========== */
.profile-page .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    margin: 0 0.25rem 0.25rem 0;
    transition: opacity 0.2s, transform 0.2s;
}
.profile-page .social-icon i {
    font-size: 1.2rem;
}
/* Pasif: gri, tıklanmaz */
.profile-page .social-icon.social-icon--inactive {
    background: rgba(255,255,255,0.06);
    color: #6b7280;
    cursor: default;
    pointer-events: none;
}
/* Aktif: yeşil vurgu, tıklanabilir */
.profile-page .social-icon.social-icon--active {
    background: rgba(107, 207, 62, 0.2);
    color: #6BCF3E;
    text-decoration: none;
}
.profile-page .social-icon.social-icon--active:hover {
    background: rgba(107, 207, 62, 0.35);
    color: #8ade6b;
    transform: scale(1.08);
}

.profile-theme--publisher .social-icon.social-icon--active {
    background: rgba(35, 134, 54, 0.25);
    color: #3fb950;
}
.profile-theme--publisher .social-icon.social-icon--active:hover {
    background: rgba(35, 134, 54, 0.4);
    color: #56d364;
}

/* ========== INVESTOR — amber waves ========== */
.profile-theme--investor {
    position: relative;
    min-height: 100vh;
    padding: 2rem 0 3rem;
    background: #0c0a0f;
    overflow: hidden;
}

.profile-theme--investor::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(ellipse 80% 45% at 50% -10%, rgba(245, 158, 11, 0.14), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 60%, rgba(251, 191, 36, 0.08), transparent);
    pointer-events: none;
    z-index: 0;
}

.profile-theme--investor::after {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.55;
    background-image:
        repeating-linear-gradient(
            -8deg,
            transparent,
            transparent 28px,
            rgba(245, 158, 11, 0.07) 28px,
            rgba(245, 158, 11, 0.09) 30px,
            transparent 30px,
            transparent 56px
        ),
        repeating-linear-gradient(
            6deg,
            transparent,
            transparent 44px,
            rgba(251, 191, 36, 0.05) 44px,
            rgba(251, 191, 36, 0.07) 46px,
            transparent 46px,
            transparent 88px
        );
    pointer-events: none;
    z-index: 0;
}

.profile-theme--investor .container {
    position: relative;
    z-index: 1;
}

.profile-theme--investor .card {
    background: linear-gradient(165deg, rgba(28, 22, 14, 0.96) 0%, rgba(12, 10, 8, 0.99) 100%);
    border: 1px solid rgba(245, 158, 11, 0.22);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.profile-theme--investor .card:hover {
    border-color: rgba(251, 191, 36, 0.35);
}

.profile-badge--investor {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #1a1206 !important;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.35);
}

.profile-theme--investor .social-icon.social-icon--active {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.profile-theme--investor .social-icon.social-icon--active:hover {
    background: rgba(245, 158, 11, 0.35);
    color: #fde68a;
}

/* ========== DESIGNER — purple / mint waves (studio) ========== */
.profile-theme--designer {
    position: relative;
    min-height: 100vh;
    padding: 2rem 0 3rem;
    background: #0a0c14;
    overflow: hidden;
}

.profile-theme--designer::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(ellipse 85% 55% at 15% 0%, rgba(124, 92, 255, 0.2), transparent 52%),
        radial-gradient(ellipse 60% 50% at 95% 30%, rgba(0, 212, 170, 0.1), transparent 48%);
    pointer-events: none;
    z-index: 0;
}

.profile-theme--designer::after {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.5;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%237c5cff' stroke-opacity='0.2' stroke-width='1.2' d='M0,100 C200,40 400,160 600,90 C800,20 1000,140 1200,80'/%3E%3Cpath fill='none' stroke='%2300d4aa' stroke-opacity='0.15' stroke-width='1' d='M0,130 C300,180 500,60 800,110 C950,140 1100,70 1200,100'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 100% 200px;
    background-position: 0 100%;
    pointer-events: none;
    z-index: 0;
}

.profile-theme--designer .container {
    position: relative;
    z-index: 1;
}

.profile-theme--designer .card {
    background: linear-gradient(165deg, rgba(20, 18, 36, 0.94) 0%, rgba(10, 12, 22, 0.98) 100%);
    border: 1px solid rgba(124, 92, 255, 0.18);
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 212, 170, 0.04);
}

.profile-theme--designer .card:hover {
    border-color: rgba(124, 92, 255, 0.32);
    box-shadow: 0 12px 44px rgba(0, 0, 0, 0.5), 0 0 28px rgba(124, 92, 255, 0.08);
}

.profile-badge--designer {
    background: linear-gradient(135deg, #7c5cff 0%, #00a896 100%) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 2px 14px rgba(124, 92, 255, 0.35);
}

.profile-designer-avatar-fallback {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c5cff, #00a896);
    box-shadow: 0 0 28px rgba(124, 92, 255, 0.35);
}

.profile-theme--designer .social-icon.social-icon--active {
    background: rgba(124, 92, 255, 0.22);
    color: #c4b5fd;
}

.profile-theme--designer .social-icon.social-icon--active:hover {
    background: rgba(0, 212, 170, 0.2);
    color: #5eead4;
}

.profile-theme--investor main,
.profile-theme--designer main {
    background: transparent !important;
}
