/* Sosyal Medya, Hikayeler, Oyunlar, Paylaş Butonu */

.social-section {
    margin: 28px 0;
    padding: 28px 22px 32px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 182, 193, 0.28));
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(196, 69, 105, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
}

.social-section h3 {
    color: var(--theme-primary);
    margin-bottom: 22px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 22px;
    justify-content: center;
    align-items: flex-start;
}

.social-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--theme-primary);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 64px;
}

.social-icon-link:hover {
    transform: translateY(-6px) scale(1.04);
}

.social-icon-link:active {
    transform: translateY(-2px) scale(0.98);
}

.social-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--theme-secondary), var(--theme-primary));
    box-shadow: 0 10px 24px rgba(196, 69, 105, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.45);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.social-icon-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, transparent 55%);
    pointer-events: none;
}

.social-icon-circle svg {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.social-icon-link:hover .social-icon-circle {
    box-shadow: 0 14px 32px rgba(196, 69, 105, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.social-icon-label {
    font-size: 0.78rem;
    font-weight: 600;
    max-width: 84px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.92;
}

/* Platform marka renkleri */
.social-instagram .social-icon-circle {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.social-facebook .social-icon-circle {
    background: linear-gradient(135deg, #1877f2, #0d5dbf);
}
.social-twitter .social-icon-circle {
    background: linear-gradient(135deg, #1a1a1a, #333);
}
.social-youtube .social-icon-circle {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}
.social-tiktok .social-icon-circle {
    background: linear-gradient(135deg, #010101, #25f4ee 120%);
}
.social-whatsapp .social-icon-circle {
    background: linear-gradient(135deg, #25d366, #128c7e);
}
.social-telegram .social-icon-circle {
    background: linear-gradient(135deg, #2aabee, #229ed9);
}
.social-spotify .social-icon-circle {
    background: linear-gradient(135deg, #1db954, #169c46);
}
.social-custom .social-icon-circle {
    background: linear-gradient(135deg, var(--theme-secondary), var(--theme-primary));
}

.stories-section {
    margin: 24px 0;
    padding: 20px 16px;
    background: rgba(255, 182, 193, 0.22);
    border-radius: 20px;
}

.stories-section h3 {
    color: var(--theme-primary);
    margin-bottom: 16px;
    text-align: center;
}

.stories-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 4px 12px;
    scrollbar-width: thin;
}

.story-ring {
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.story-ring-thumb {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--theme-secondary), var(--theme-primary));
    margin: 0 auto 8px;
}

.story-ring-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
}

.story-ring span {
    font-size: 0.72rem;
    color: var(--theme-primary);
    font-weight: 600;
}

.story-viewer {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: #000;
    display: none;
    flex-direction: column;
}

.story-viewer.active {
    display: flex;
}

.story-progress {
    display: flex;
    gap: 4px;
    padding: 12px 12px 0;
}

.story-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-fill {
    height: 100%;
    width: 0%;
    background: #fff;
    transition: width linear;
}

.story-viewer-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.story-viewer-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 12px;
    object-fit: contain;
}

.story-caption {
    position: absolute;
    bottom: 80px;
    left: 20px;
    right: 20px;
    color: #fff;
    text-align: center;
    font-size: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.story-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
}

.story-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    height: 60%;
    background: transparent;
    border: none;
    cursor: pointer;
}

.story-nav.prev { left: 0; }
.story-nav.next { right: 0; }

.games-section {
    margin: 30px 0;
    padding: 30px 20px;
    background: rgba(255, 182, 193, 0.28);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.games-section h2 {
    color: var(--theme-primary);
    margin-bottom: 22px;
    font-size: 1.6rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.game-card {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 18px;
    padding: 22px 18px;
    border: 2px solid rgba(196, 69, 105, 0.15);
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(196, 69, 105, 0.2);
    border-color: var(--theme-primary);
}

.game-card-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.game-card h4 {
    color: var(--theme-primary);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.game-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.game-modal {
    position: fixed;
    inset: 0;
    z-index: 3500;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.game-modal.active {
    display: flex;
}

.game-modal-box {
    background: linear-gradient(160deg, rgba(255, 240, 245, 0.98), rgba(255, 220, 235, 0.98));
    border-radius: 22px;
    padding: 24px 20px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    -webkit-overflow-scrolling: touch;
}

.game-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: var(--theme-primary);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
}

.game-modal h3 {
    color: var(--theme-primary);
    text-align: center;
    margin-bottom: 8px;
}

.game-modal .game-sub {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.game-timer {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--theme-primary);
    margin-bottom: 12px;
}

.game-score {
    text-align: center;
    font-size: 1.1rem;
    color: var(--theme-primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 16px 0;
}

.match-card {
    aspect-ratio: 1;
    border-radius: 14px;
    border: 2px solid rgba(196, 69, 105, 0.25);
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    color: var(--theme-primary);
    font-weight: 600;
    padding: 8px;
}

.match-card.hidden-card {
    background: linear-gradient(135deg, var(--theme-secondary), var(--theme-primary));
    color: #fff;
    font-size: 1.4rem;
}

.match-card.hidden-card .match-label {
    display: none;
}

.match-card.revealed,
.match-card.matched {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--theme-primary);
}

.match-card.matched {
    opacity: 0.6;
    pointer-events: none;
}

.match-card.match-burn {
    animation: matchBurn 0.8s ease forwards;
    pointer-events: none;
}

@keyframes matchBurn {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); background: #ffcccc; border-color: #e74c3c; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.match-card .match-emoji {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.match-preview-msg {
    text-align: center;
    font-weight: 600;
    color: var(--theme-primary);
    font-size: 1.1rem;
    margin: 12px 0;
}

.match-name-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #f0d0dc;
    border-radius: 12px;
    font-family: inherit;
    margin-bottom: 10px;
    text-align: center;
    -webkit-user-select: text;
    user-select: text;
}

.match-hint {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 8px;
}

.match-card.selected {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(196, 69, 105, 0.25);
    transform: scale(1.03);
}

.game-area {
    position: relative;
    height: 320px;
    min-height: 280px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    overflow: hidden;
    margin: 12px 0;
    border: 2px dashed rgba(196, 69, 105, 0.2);
    touch-action: none;
}

.game-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--theme-secondary), var(--theme-primary));
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 12px;
}

.game-result {
    text-align: center;
    padding: 16px;
    border-radius: 14px;
    margin-top: 12px;
    font-weight: 600;
    font-size: 1.05rem;
}

.game-result.win {
    background: #d4edda;
    color: #155724;
}

.game-result.lose {
    background: #f8d7da;
    color: #721c24;
}

.floating-game-heart,
.game-target {
    position: absolute;
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s;
    touch-action: manipulation;
    z-index: 2;
}

.floating-game-heart {
    font-size: 30px;
    animation: heartFloatUp linear forwards;
    pointer-events: auto;
}

.floating-game-heart:active,
.game-target:active {
    transform: scale(1.15);
}

@keyframes heartFloatUp {
    from { transform: translateY(0) scale(1); opacity: 1; }
    to { transform: translateY(-300px) scale(0.85); opacity: 0.15; }
}

.game-target {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle, #ff6b9d, var(--theme-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(196, 69, 105, 0.4);
    animation: targetPulse 0.6s ease-in-out infinite;
}

@keyframes targetPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.share-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 600;
    text-decoration: none;
    color: #fff;
}

.share-float-glow {
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--theme-secondary), var(--theme-primary));
    opacity: 0.45;
    filter: blur(8px);
    animation: sharePulse 2.5s ease-in-out infinite;
}

@keyframes sharePulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.08); opacity: 0.65; }
}

.share-float-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px 12px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--theme-secondary), var(--theme-primary));
    box-shadow: 0 8px 28px rgba(196, 69, 105, 0.45);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s;
}

.share-float:hover .share-float-inner {
    transform: translateY(-3px);
}

@media (max-width: 480px) {
    .share-float-inner span:last-child {
        display: none;
    }
    .share-float-inner {
        padding: 14px;
        border-radius: 50%;
    }
    .match-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }
    .match-card {
        font-size: 0.75rem;
    }
    .match-card .match-emoji {
        font-size: 1.3rem;
    }
    .game-modal-box {
        padding: 18px 14px;
        max-height: 92vh;
    }
    .game-area {
        height: 260px;
        min-height: 220px;
    }
    .games-score-panel {
        flex-direction: column;
    }
    .top-scores-grid {
        grid-template-columns: 1fr;
    }
    .match-emoji-bar {
        gap: 6px;
    }
    .match-emoji-chip {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

/* Oyun skor paneli */
.games-score-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
    align-items: stretch;
}

.live-score-box {
    flex: 1;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    border: 2px solid rgba(196, 69, 105, 0.15);
}

.live-score-label {
    display: block;
    font-size: 0.78rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.live-score-name {
    display: block;
    font-size: 0.9rem;
    color: var(--theme-primary);
    font-weight: 600;
    margin: 4px 0;
}

.live-score-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--theme-primary);
    line-height: 1.1;
}

.top-scores-grid {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    min-width: 200px;
}

.top-score-item {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(196, 69, 105, 0.12);
}

.top-game {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--theme-primary);
    margin-bottom: 4px;
}

.top-player {
    font-size: 0.8rem;
    color: #555;
    word-break: break-word;
}

.game-level-tag {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(196, 69, 105, 0.12);
    color: var(--theme-primary);
    font-size: 0.72rem;
    font-weight: 600;
}

.game-live-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(196, 69, 105, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
    gap: 10px;
}

.game-player {
    font-weight: 600;
    color: var(--theme-primary);
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-live-score {
    font-weight: 700;
    color: var(--theme-primary);
    font-size: 1.05rem;
}

.match-level-badge {
    text-align: center;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--theme-primary);
    margin: 8px 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
}

.match-emoji-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 14px;
    border: 2px dashed rgba(196, 69, 105, 0.2);
}

.match-emoji-chip {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(196, 69, 105, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.match-card.hidden-card .match-emoji {
    display: none;
}

.player-name-modal {
    position: fixed;
    inset: 0;
    z-index: 3600;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.player-name-modal.active {
    display: flex;
}

.player-name-box {
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.player-name-box h3 {
    color: var(--theme-primary);
    margin-bottom: 8px;
}

.player-name-box p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.player-name-box input {
    width: 100%;
    padding: 12px;
    border: 2px solid #f0d0dc;
    border-radius: 12px;
    font-family: inherit;
    margin-bottom: 12px;
    text-align: center;
    font-size: 1rem;
    -webkit-user-select: text;
    user-select: text;
}
