/* Genel Sayfa Stilleri */
body.simulation-body { background-color: #f0f2f5; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; margin: 0; padding: 20px; box-sizing: border-box; }

/* iPhone ve Ekran Stilleri */
.iphone-mockup { width: 390px; height: 844px; background-color: #111; border-radius: 54px; padding: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); box-sizing: border-box; }
.screen { width: 100%; height: 100%; background-color: #fff; border-radius: 42px; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 150px; height: 30px; background-color: #111; border-bottom-left-radius: 18px; border-bottom-right-radius: 18px; z-index: 10; }

/* Profil Alanları */
.profile-header-new { display: flex; align-items: center; justify-content: space-between; padding: 45px 16px 16px 16px; flex-shrink: 0; }
.profile-picture { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.profile-picture img { width: 100%; height: 100%; object-fit: cover; }
.profile-stats-new { display: flex; justify-content: space-around; flex-grow: 1; }
.stat-item { display: flex; flex-direction: column; align-items: center; font-size: 14px; }
.stat-item strong { font-size: 16px; font-weight: 600; }
.profile-bio-new { padding: 0 16px 16px 16px; font-size: 14px; line-height: 1.4; flex-shrink: 0; word-wrap: break-word; }
.profile-bio-new p { margin: 0; } .bio-username { font-weight: 600; }
.bio-category { color: #8e8e8e; margin-bottom: 5px; }

/* Öne Çıkanlar Alanı */
.highlights-container { display: flex; gap: 15px; padding: 0 16px 16px 16px; overflow-x: auto; flex-shrink: 0; flex-wrap: nowrap; }
.highlight-item { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.highlight-circle { width: 60px; height: 60px; border-radius: 50%; border: 1px solid #c7c7c7; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 5px; padding: 2px; background: white; }
.highlight-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.highlight-title { font-size: 12px; text-align: center; }
.highlights-container::-webkit-scrollbar { height: 6px; }
.highlights-container::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.highlights-container::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
.highlights-container::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* Profil Sekmeleri */
.profile-tabs { display: flex; flex-shrink: 0; border-top: 1px solid #dbdbdb; }
.tab-item { flex: 1; padding: 10px 0; display: flex; align-items: center; justify-content: center; background-size: 24px; background-position: center; background-repeat: no-repeat; }
.tab-item.active { border-top: 1px solid #262626; margin-top: -1px; }
#grid-tab-icon { background-image: url('data:image/svg+xml,%3Csvg aria-label="Grid" fill="currentColor" height="24" viewBox="0 0 24 24" width="24"%3E%3Cpath d="M3 3h18v18H3z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/%3E%3Cpath d="M9.015 3v18M14.985 3v18M3 9.015h18M3 14.985h18" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/%3E%3C/svg%3E'); }
#reels-tab-icon { background-image: url('data:image/svg+xml,%3Csvg aria-label="Reels" fill="currentColor" height="24" viewBox="0 0 24 24" width="24"%3E%3Cpolygon fill="none" points="20 21 12 16 4 21 4 3 20 3 20 21" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/%3E%3Cline fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" x1="12" x2="12" y1="16" y2="3"/%3E%3C/svg%3E'); opacity: 0.4;}
#tagged-tab-icon { background-image: url('data:image/svg+xml,%3Csvg aria-label="Posts with you" fill="currentColor" height="24" viewBox="0 0 24 24" width="24"%3E%3Cpath d="M10.201 3.797a2.5 2.5 0 0 1 3.598 0L22 12 12 22 2 12l8.201-8.203z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/%3E%3Ccircle cx="12.001" cy="12.001" fill="none" r="3" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/%3E%3C/svg%3E'); opacity: 0.4;}

/* Gönderi Izgarası */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; flex-grow: 1; overflow-y: auto; background-color: #dbdbdb; align-content: start; }
.grid-item { position: relative; width: 100%; aspect-ratio: 4 / 5; cursor: pointer; background-color: #efefef; }
.grid-item .media-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.grid-item .media-wrapper img, .grid-item .media-wrapper video { width: 100%; height: 100%; object-fit: cover; }
.post-icon { position: absolute; top: 8px; right: 8px; z-index: 4; filter: drop-shadow(0 0 3px rgba(0,0,0,0.6)); pointer-events: none; width: 24px; height: 24px; display: flex; justify-content: center; align-items: center; }
.post-icon.video::after, .post-icon.carousel::after { font-size: 20px; color: white; line-height: 1; }
.post-icon.video::after { content: '🎬'; } .post-icon.carousel::after { content: '📑'; }

/* Modal Stilleri */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(18, 18, 18, 0.9); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-container { display: flex; width: 85vw; max-width: 1400px; height: 90vh; background-color: #fff; border-radius: 8px; overflow: hidden; }
.modal-media-side { flex: 3; background-color: #000; display: flex; align-items: center; justify-content: center; position: relative; }
.modal-info-side { flex: 2; min-width: 350px; max-width: 500px; display: flex; flex-direction: column; height: 100%; }
.modal-content { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.modal-content img, .modal-content video { width: 100%; height: 100%; object-fit: contain; }
.modal-close-button { position: absolute; top: 15px; right: 15px; font-size: 30px; color: #a8a8a8; cursor: pointer; line-height: 1; z-index: 1010; }
.modal-nav { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(255, 255, 255, 0.2); color: #f1f1f1; border-radius: 50%; width: 30px; height: 30px; display: flex; justify-content: center; align-items: center; font-size: 20px; cursor: pointer; user-select: none; z-index: 1005; display: none; }
.modal-nav:hover { background-color: rgba(255,255,255,0.4); }
.modal-nav.prev { left: 10px; } .modal-nav.next { right: 10px; }
.modal-overlay.carousel-active .modal-nav { display: flex; }
.global-nav { position: absolute; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.7); font-size: 50px; cursor: pointer; z-index: 999; user-select: none; transition: color 0.2s; }
.global-nav:hover { color: white; }
.global-nav.prev { left: 20px; } .global-nav.next { right: 20px; }
.info-header { display: flex; align-items: center; padding: 16px; border-bottom: 1px solid #efefef; flex-shrink: 0; }
.info-profile-pic { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; margin-right: 14px; flex-shrink: 0; }
.info-profile-pic img { width: 100%; height: 100%; object-fit: cover; }
.info-username { font-weight: 600; }
.info-caption-container { flex-grow: 1; padding: 16px; overflow-y: auto; font-size: 14px; line-height: 1.5; min-height: 0; }
.info-footer { padding: 16px; border-top: 1px solid #efefef; font-size: 12px; color: #8e8e8e; text-transform: uppercase; flex-shrink: 0; }
.info-likes { font-weight: 600; color: #262626; text-transform: none; margin-bottom: 8px; }