/* ============================================
   KULLANICI PROFİL SAYFASI - OPTİMİZE EDİLMİŞ
   Mobil-First | Sadece Kullanılan Stiller
   /pedalci/kullanicisayfasi.css
============================================ */

/* ============================================
   ANA PROFİL KARTI
============================================ */
.profile-main-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    --cover-h: 200px;
    --avatar-sz: 100px;
}

.profile-cover {
    width: 100%;
    height: var(--cover-h);
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    position: relative;
    z-index: 1;
}

.profile-cover-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.profile-avatar {
    width: var(--avatar-sz);
    height: var(--avatar-sz);
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--accent);
    position: absolute;
    left: 50%;
    top: calc(var(--cover-h) - (var(--avatar-sz) / 2));
    transform: translateX(-50%);
    z-index: 3;
    transition: opacity 0.3s ease; /* ← EKLE */
}

/* Story açıkken gizle */
body:has(.story-viewer-modal.active) .profile-avatar {
    opacity: 0;
    pointer-events: none;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--bg-gradient-end) 100%);
}

/* ============================================
   PROFİL BİLGİLERİ
============================================ */
.profile-info-section {
    background: var(--bg-primary);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    position: relative;
    z-index: 2;
    padding: calc((var(--avatar-sz) / 2) + 16px) 20px 20px 20px;
    text-align: center;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* ============================================
   BİLGİ KARTLARI GRID
============================================ */
.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 16px 0 14px 0;
}

.info-card {
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--card-color) 15%, var(--bg-secondary)),
        var(--bg-secondary)
    );
    border: 2px solid color-mix(in srgb, var(--card-color) 30%, transparent);
    border-radius: 16px;
    padding: 14px 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-icon {
    font-size: 1.75rem;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.card-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    font-weight: 700;
    margin-bottom: 4px;
}

.card-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

/* ============================================
   SOSYAL MEDYA BAR
============================================ */
.social-links-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 16px 0 0 0;
    padding: 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Platform-specific background colors (fallback) */
.social-instagram { background: #000000; }
.social-strava { background: #000000; }
.social-twitter { background: #000000; }
.social-website { background: #e9e8e8; }

.social-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
}

/* Active (touch) feedback - mobil için */
.social-link:active {
    transform: scale(0.92);
}

/* Dark mode uyumluluğu */
[data-theme="dark"] .social-link {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

[data-theme="dark"] .social-instagram { 
    background: #000000;
    border: none;
}

[data-theme="dark"] .social-strava { 
    background: #000000; 
    border: none;
}

[data-theme="dark"] .social-twitter { 
    background: #000000; 
    border: none;
}

/* Çok küçük ekranlar */
@media (max-width: 360px) {
    .social-links-modern {
        gap: 10px;
    }
    
    .social-link,
    .social-icon-img {
        width: 32px;
        height: 32px;
    }
}
/* ============================================
   BAŞARI BANNER
============================================ */
.profile-achievement-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.achievement-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.achievement-trophy {
    font-size: 36px;
    flex-shrink: 0;
}

.achievement-info {
    flex: 1;
    color: white;
}

.achievement-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
}

.achievement-detail {
    font-size: 13px;
    margin: 0 0 8px 0;
    opacity: 0.95;
}

.achievement-percentage {
    font-weight: 700;
    color: #ffd700;
    margin-left: 8px;
}

.achievement-bonus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}

.achievement-bonus.legendary {
    background: linear-gradient(90deg, #ff6b6b, #ffd93d);
    color: #1a1a1a;
}

.bonus-icon {
    font-size: 16px;
}

/* ============================================
   AKTİVİTE STATUS BANNER
============================================ */
.activity-status-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--status-color) 15%, var(--bg-secondary)),
        var(--bg-secondary)
    );
    border-radius: var(--radius-lg);
    border: 2px solid color-mix(in srgb, var(--status-color) 30%, transparent);
    position: relative;
    overflow: hidden;
}

.status-pulse {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--status-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-emoji {
    font-size: 24px;
    margin-left: 8px;
}

.status-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-text strong {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
}

.status-detail {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

/* ============================================
   BAŞARILAR / ROZETLER (Stories)
============================================ */
.profile-achievements-section {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
}

.achievements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.achievements-header .section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.achievements-count {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 6px 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.achievements-scroll-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-tertiary);
    font-size: 12px;
    margin-bottom: var(--spacing-sm);
}

.scroll-arrow {
    font-size: 16px;
}

.achievements-stories-grid {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    overflow-y: visible;
    padding: var(--spacing-sm) 0 var(--spacing-md) 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.achievements-stories-grid::-webkit-scrollbar {
    height: 6px;
}

.achievements-stories-grid::-webkit-scrollbar-track {
    background: transparent;
}

.achievements-stories-grid::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.achievement-story-item {
    flex: 0 0 80px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.story-ring {
    position: relative;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, 
        var(--rozet-renk) 0%, 
        color-mix(in srgb, var(--rozet-renk) 60%, #fff) 100%
    );
    border-radius: 50%;
    padding: 3px;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--rozet-renk) 30%, transparent);
}

.story-inner {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-icon {
    font-size: 36px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.story-label {
    margin-top: 6px;
    text-align: center;
    max-width: 80px;
}

.story-month,
.story-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--rozet-renk);
}

/* ============================================
   İSTATİSTİKLER KARTI
============================================ */
.profile-stats-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 12px;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
}

.stat-item {
    text-align: center;
    padding: 10px 6px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-item:active {
    transform: scale(0.98);
    background: var(--bg-secondary);
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.stat-label {
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-top: 2px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
/* ============================================
   EMPTY STATE
============================================ */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    margin-bottom: var(--spacing-xl);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.6;
}

.empty-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 var(--spacing-sm) 0;
}

.empty-hint {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin: 0;
}

/* ============================================
   TİMELİNE FEED
============================================ */
.activity-timeline {
    margin: var(--spacing-xl) 0;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 0;
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    flex-shrink: 0;
}

.card-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.card-username {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-timestamp {
    font-size: 12px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.privacy-indicator {
    font-size: 12px;
    opacity: 0.7;
}

.card-caption {
    padding: 0 12px 10px 12px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
}

.card-caption strong {
    font-weight: 700;
}

.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-primary);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-stats {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    flex-wrap: wrap;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.stat-icon {
    font-size: 16px;
}

.stat-pill strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* ROTA KARTLARI */
.timeline-card-route {
    border-left: 3px solid var(--accent);
}

.route-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--bg-gradient-end) 100%);
    color: white;
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 600;
    margin-left: auto;
    flex-shrink: 0;
}

.route-badge .badge-icon {
    font-size: 16px;
}

.route-badge .badge-text {
    display: none; /* Mobilde sadece ikon */
}

.route-type-pill {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    font-weight: 600;
}

/* Daha Fazla Yükle Butonu */
.load-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 16px;
    margin-top: 16px;
}

.load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.load-more-btn:active {
    transform: scale(0.96);
}

.btn-icon {
    font-size: 18px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.load-more-spinner {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.load-more-spinner.hidden {
    display: none;
}

.load-more-spinner .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.timeline-end-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.timeline-end-message span {
    font-size: 18px;
}
/* DAHA FAZLA YÜKLE BUTONU SONU */

/* ============================================
   VİDEO GALERİSİ (Instagram Reels)
============================================ */
.profile-videos-section {
    margin: 24px 0;
    padding: 0;
}

.videos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 16px;
}

.videos-header .section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.videos-count {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 4px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.videos-scroll-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 16px 12px;
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.videos-scroll-hint .scroll-arrow {
    color: var(--text-secondary);
}

.reels-container {
    display: flex;
    gap: 12px;
    padding: 0 16px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.reels-container::-webkit-scrollbar {
    display: none;
}

.reel-item {
    flex: 0 0 110px;
    scroll-snap-align: start;
    cursor: pointer;
    opacity: 1;
    animation: fadeInUp 0.4s ease forwards;
    border-radius: 12px;
}

.reel-item:active {
    transform: scale(0.98);
}

.reel-thumbnail {
    position: relative;
    width: 110px;
    height: 190px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.reel-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    pointer-events: none;
}

.reel-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
    pointer-events: none;
}

.reel-play-btn svg {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.reel-duration {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.reel-info {
    margin-top: 8px;
}

.reel-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.reel-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-secondary);
}

.reel-icon {
    font-size: 10px;
    opacity: 0.8;
}

/* ============================================
   VİDEO MODALI - MODERN & FULL SCREEN
   Mobil-First | Aspect Ratio Korumalı
============================================ */

.profile-video-modal {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-video-modal.active {
    display: flex;
    opacity: 1;
}

/* Close Button - Daha belirgin */
.video-modal-close {
    position: fixed;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 100003;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.video-modal-close:active {
    transform: scale(0.9);
    background: rgba(255, 0, 0, 0.8);
}

/* Video Viewer - Tam ekran optimize */
.video-modal-viewer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
}

/* Video Player Container - Tam Ekran */
#profileVideoPlayer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

/* YouTube Embed - Tam Ekran Kapla */
#profileVideoPlayer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Loading State */
.video-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    color: white;
    z-index: 100002;
}

.video-loading.hidden {
    display: none;
}

.video-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
}

.video-loading p {
    margin-top: 20px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
}

@keyframes videoSpinAnim {
    to { transform: rotate(360deg); }
}

/* Video Info Overlay - Bottom Gradient */
.video-info-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 40px 20px 20px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        transparent 100%
    );
    z-index: 100001;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Info fade out after 3s (optional) */
.profile-video-modal.info-hidden .video-info-overlay {
    opacity: 0;
}

.video-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.video-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-author-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.video-title {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 90%;
}

/* Counter Badge - Top Center */
.video-counter {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 100002;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Navigation Arrows - Daha büyük ve belirgin */
.video-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    pointer-events: none;
    z-index: 100001;
}

.video-nav-arrow {
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.301);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(129, 129, 129, 0.15);
    border-radius: 50%;
    color: rgb(112, 112, 112);
    font-size: 28px;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    font-family: Arial, sans-serif;
}

.video-nav-arrow:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   TABLET & DESKTOP OPTIMIZATIONS
============================================ */

/* Tablet Portrait (768px+) */
@media (min-width: 768px) {
    #profileVideoPlayer {
        max-width: 90vw;
        max-height: 90vh;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    }
    
    #profileVideoPlayer iframe {
        border-radius: 16px;
    }
    
    .video-modal-close {
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    
    .video-modal-close:hover {
        background: rgba(255, 0, 0, 0.9);
        transform: rotate(90deg);
    }
    
    .video-nav-arrow {
        width: 56px;
        height: 56px;
        font-size: 32px;
    }
    
    .video-nav-arrow:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    #profileVideoPlayer {
        max-width: 1200px;
        max-height: 90vh;
    }
    
    .video-info-overlay {
        padding: 50px 40px 30px;
    }
    
    .video-meta {
        max-width: 800px;
    }
    
    .video-title {
        font-size: 16px;
    }
    
    .video-nav {
        padding: 0 24px;
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    #profileVideoPlayer {
        max-width: 1400px;
    }
}

/* ============================================
   KEYBOARD NAVIGATION SUPPORT
============================================ */

/* Focus states */
.video-modal-close:focus,
.video-nav-arrow:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* ============================================
   SAFE AREAS (iPhone notch vs.)
============================================ */

@supports (padding: max(0px)) {
    .video-modal-close {
        top: max(12px, env(safe-area-inset-top));
        right: max(12px, env(safe-area-inset-right));
    }
    
    .video-counter {
        top: max(12px, env(safe-area-inset-top));
    }
    
    .video-info-overlay {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    
    .video-nav {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
}

/* ============================================
   ACCESSIBILITY
============================================ */

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .profile-video-modal,
    .video-modal-close,
    .video-nav-arrow,
    .video-spinner {
        animation: none;
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .video-modal-close,
    .video-nav-arrow,
    .video-counter {
        border: 2px solid white;
        background: #000;
    }
}

/* ============================================
   ANIMASYONLAR
============================================ */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   DARK MODE
============================================ */
[data-theme="dark"] .story-icon {
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
}

[data-theme="dark"] .reel-thumbnail {
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

[data-theme="dark"] .reel-item:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ============================================
   TÜM VİDEOLAR BUTONU
============================================ */
.view-all-videos {
    padding: 0 16px 16px;
}

.btn-all-videos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent, #3b82f6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-all-videos:active {
    transform: scale(0.98);
    background: rgba(59, 130, 246, 0.15);
}

.btn-all-videos .count {
    font-size: 13px;
    opacity: 0.7;
}

@media (min-width: 768px) {
    .btn-all-videos:hover {
        background: rgba(59, 130, 246, 0.15);
        border-color: rgba(59, 130, 246, 0.3);
    }
}