/*
Theme Name: Solaris V10 (Pure Intelligence)
Theme URI: https://tyrk.com.tr
Author: Alice
Description: SuperApp mobile-first pure layout for tyrk.com.tr
Version: 11.0
*/

:root {
    --bg-dark: #e9ecef;
    --app-bg: #ffffff;
    --text-primary: #000000;
    --text-secondary: #8e8e93;
    --border: #f0f0f0;
    --accent: #000000;
    --nav-height: 55px;
    --header-height: 55px;
    --app-width: 450px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg-dark);
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: var(--text-primary);
    min-height: 100vh; overflow-y: auto; overflow-x: hidden;
}

/* Zorunlu olarak eklenen WP Footer'ı şekillendirip ortaya alma */
body > *[class*="footer"], body > p, .site-info, #colophon {
    text-align: center;
    width: 100%;
    max-width: 450px;
    padding: 15px;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.5;
    background: transparent;
    margin: 0 auto;
}

/* Dekoratif masaüstü arkaplanı */
.desktop-ambient-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, #ffffff 0%, #e9ecef 100%);
    z-index: -1;
}

.superapp-container {
    width: 100%;
    max-width: var(--app-width);
    background: var(--app-bg);
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
    position: relative;
    padding-bottom: calc(var(--nav-height) + 20px);
}

/* APP HEADER */
.app-header {
    height: var(--header-height);
    display: flex; justify-content: flex-start; align-items: center;
    padding: 0 15px; position: sticky; top: 0; background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px); z-index: 100;
    border-bottom: 1px solid var(--border);
    gap: 15px;
}
.brand { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; text-decoration: none; color: var(--text-primary); }

/* Header Search Box */
.header-search { flex: 1; display: flex; justify-content: flex-start; }
.top-search-input {
    width: 100%;
    max-width: 200px;
    background: #f0f0f5;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
    color: var(--text-primary);
    font-weight: 500;
}
.top-search-input::placeholder { color: #8e8e93; font-weight: 400; }

/* Header Profile Avatar & Auth Buttons */
.header-profile { display: flex; align-items: center; justify-content: flex-end; }
.top-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.1);
    background: #000;
}

.auth-buttons { display: flex; gap: 6px; }
.btn-auth {
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    transition: 0.2s ease;
    white-space: nowrap;
}
.btn-login { background: #f0f0f5; color: var(--text-primary) !important; }
.btn-register { 
    background: #000; 
    color: #ffffff !important; 
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); 
}
.btn-auth:active { transform: scale(0.95); }

/* STORY BAR / QUICK ACCESS */
.story-bar {
    display: flex; overflow-x: auto; padding: 15px; gap: 15px;
    border-bottom: 1px solid var(--border); scrollbar-width: none;
}
.story-bar::-webkit-scrollbar { display: none; }
.story-item { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 65px;}
.story-ring {
    width: 65px; height: 65px; border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    display: flex; justify-content: center; align-items: center;
}
.story-icon {
    width: 59px; height: 59px; border-radius: 50%; background: #fff;
    display: flex; justify-content: center; align-items: center; font-size: 24px;
    border: 2px solid var(--app-bg);
}
.story-item span { font-size: 11px; color: var(--text-secondary); font-weight: 500;}

/* FEED POST */
.feed-post { border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.post-user-bar { display: flex; align-items: center; padding: 12px 15px; gap: 10px; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600;}
.user-info { flex: 1; display:flex; flex-direction: column;}
.user-name { font-size: 14px; font-weight: 700; display:flex; align-items:center; gap:4px; }
.post-time { font-size: 11px; color: var(--text-secondary); }
.post-more { font-weight: 800; font-size: 18px; line-height: 1; cursor: pointer; }

/* Edge to Edge Media */
.post-media { width: 100%; aspect-ratio: 4/5; background-size: cover; background-position: center; }
.post-text-only { width: 100%; min-height: 200px; display:flex; align-items:center; justify-content:center; padding: 30px; text-align:center; background: #f8f8f8; }
.post-text-only h2 { font-size: 24px; font-weight: 700; line-height: 1.3;}

/* 💎 SOLARIS V10: GLOBAL ACTION BUTTONS (NUCLEAR SYNC) */
.post-actions, .post-actions *, .a-item, .a-item span { 
    text-decoration: none !important; 
    border: none !important;
    box-shadow: none !important;
}

.post-actions { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 12px 16px; border-top: 1.5px solid #f6f6f8;
}
.action-group-left { display: flex; align-items: center; gap: 18px; }
.action-group-right { display: flex; align-items: center; }

.a-item { 
    display: inline-flex !important; align-items: center !important; 
    gap: 4px; cursor: pointer; color: #1c1c1e !important;
    transition: 0.2s; user-select: none;
    height: 32px; /* Düğme yüksekliğini sabitleyerek hizalamayı garanti ediyoruz */
}

.a-item:hover { opacity: 0.6; }

.a-item span { 
    font-size: 14px !important; font-weight: 700 !important; 
    color: #1c1c1e !important; line-height: 1 !important;
    display: flex !important; align-items: center !important;
}

.action-icon { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.2; fill: none; display: block; }
.a-item:hover .action-icon { stroke: #007aff; }

/* Feed Body */
.post-body { padding: 0 15px; font-size: 14px; }
.like-count { display: block; font-weight: 700; margin-bottom: 6px; }
.post-caption { line-height: 1.4; margin-bottom: 4px; }
.caption-user { font-weight: 700; }
.post-excerpt { color: #333; margin-bottom: 6px; }
.view-comments { color: var(--text-secondary); font-size: 13px; }

/* BOTTOM NAV (The SuperApp Core element) */
.bottom-nav {
    position: fixed; bottom: 0; width: 100%; max-width: var(--app-width);
    height: var(--nav-height); background: rgba(255,255,255,0.98);
    backdrop-filter: blur(15px); display: flex; justify-content: space-around;
    align-items: center; border-top: 1px solid var(--border); z-index: 1000;
}
.nav-btn { display: flex; align-items: center; justify-content: center; flex: 1; height: 100%; cursor: pointer; text-decoration: none; color: #8e8e93; }
.nav-btn svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav-btn.active svg { stroke: #000; stroke-width: 2.2; }

.nav-btn-main { display: flex; align-items: center; justify-content: center; flex: 1; height: 100%; text-decoration: none; }
.add-square { 
    width: 48px; height: 38px; 
    background: #fff; 
    border: 2px solid #000;
    border-radius: 12px; 
    color: #000; 
    display: flex; justify-content: center; align-items: center; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.add-square svg { stroke: #000; stroke-width: 4px; }

/* Header Optimization */
.app-header {
    justify-content: space-between;
}
.header-profile {
    margin-left: auto;
}

@media (max-width: 450px) {
    .superapp-container { width: 100vw; min-height: 100vh; box-shadow: none; border-radius: 0; border: none;}
}

/* SOLARIS CONTENT PROTECTION Layer */
.single-content-body, .info-terminal-card, .post-excerpt {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.single-content-body img, 
.single-content-body video, 
.single-content-body iframe, 
.single-content-body embed,
.single-content-body object {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 10px 0;
}

/* Fix for WordPress specific alignment classes */
.aligncenter { display: block; margin: 20px auto; }
.alignleft { float: left; margin: 0 20px 20px 0; max-width: 50%; }
.alignright { float: right; margin: 0 0 20px 20px; max-width: 50%; }

@media (max-width: 450px) {
    .alignleft, .alignright { float: none; margin: 20px auto; max-width: 100%; display: block; }
}