/* ===== Degiskenler ===== */
:root {
    --bg-base: #07070f;

    /* Liquid glass recipe: directional highlight + tinted fill + layered shadow */
    --glass-blur: blur(26px) saturate(180%);
    --glass-blur-soft: blur(18px) saturate(150%);

    --glass-fill-a: rgba(255, 255, 255, 0.14);
    --glass-fill-b: rgba(139, 92, 246, 0.05);
    --glass-border-top: rgba(255, 255, 255, 0.45);
    --glass-border-bottom: rgba(255, 255, 255, 0.08);

    --glass-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -14px 24px -18px rgba(0, 0, 0, 0.5),
        0 14px 40px rgba(0, 0, 0, 0.4);

    --glass-shadow-sm:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -8px 14px -12px rgba(0, 0, 0, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.3);

    --purple: #8b5cf6;
    --purple-light: #a78bfa;
    --purple-hover: #7c3aed;

    --blue: #38bdf8;
    --blue-light: #7dd3fc;
    --blue-hover: #0ea5e9;

    --green: #34d399;
    --green-light: #6ee7b7;

    --red: #f87171;
    --amber: #fbbf24;

    --text-primary: #f5f7fb;
    --text-secondary: #9aa4b8;

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-pill: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: "Segoe UI", system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Aurora - fluid, saturated color field the glass refracts */
body::before {
    content: "";
    position: fixed;
    inset: -10%;
    z-index: -1;
    filter: blur(60px);
    background:
        radial-gradient(38% 32% at 15% 10%, rgba(139, 92, 246, 0.55), transparent 70%),
        radial-gradient(42% 36% at 90% 20%, rgba(56, 189, 248, 0.45), transparent 70%),
        radial-gradient(40% 34% at 25% 90%, rgba(52, 211, 153, 0.35), transparent 70%),
        radial-gradient(46% 38% at 85% 88%, rgba(139, 92, 246, 0.30), transparent 70%),
        var(--bg-base);
}

a { text-decoration: none; color: inherit; }

/* ===== Navbar (liquid glass bar) ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02)),
        rgba(10, 10, 16, 0.35);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border-top);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 32px rgba(0, 0, 0, 0.25);
}

.logo {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo span {
    background: linear-gradient(90deg, var(--purple-light), var(--blue-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.navbar-center {
    display: flex;
    gap: 4px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.02);
    backdrop-filter: var(--glass-blur-soft);
    -webkit-backdrop-filter: var(--glass-blur-soft);
    border: 1px solid var(--glass-border-top);
    box-shadow: var(--glass-shadow-sm);
    padding: 6px;
    border-radius: var(--radius-pill);
}
.navbar-center a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    color: var(--text-secondary);
    transition: 0.2s;
}
.navbar-center a:hover {
    background: rgba(139, 92, 246, 0.28);
    color: var(--text-primary);
}
.nav-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Log In - outline only, glassy edge */
.login-btn {
    background: rgba(56, 189, 248, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--blue);
    padding: 7px 17px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.login-btn:hover {
    background: rgba(56, 189, 248, 0.16);
}

/* Sign Up - solid liquid gradient with gloss */
.signup-btn {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 55%),
        linear-gradient(90deg, var(--purple), var(--blue));
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
}
.signup-btn:hover { filter: brightness(1.08); }

.icon-btn {
    font-size: 18px;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
}
.icon-img {
    width: 23px;
    height: 23px;
    object-fit: contain;
}
.username { font-size: 14px; color: var(--text-secondary); }

/* ===== Layout ===== */
.page-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px;
}

.breeze-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .breeze-grid { grid-template-columns: 1fr; }
}

/* ===== Kartlar (liquid glass surface) ===== */
.card {
    background:
        linear-gradient(160deg, var(--glass-fill-a), var(--glass-fill-b) 60%),
        rgba(20, 18, 30, 0.35);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-top);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--glass-shadow);
}

/* Admin Panel */
.admin-panel { margin-bottom: 20px; }
.admin-panel form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

/* Feed Header */
.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

/* Buttons - liquid solid blue with gloss */
.btn-primary {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 55%),
        var(--blue);
    color: #041018;
    border: none;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.3);
}
.btn-primary.pill { border-radius: var(--radius-pill); }
.btn-primary:hover { filter: brightness(1.06); }

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border-top);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* Feed / Blow Kartlari */
.feed-list { display: flex; flex-direction: column; gap: 14px; }

.blow-card {
    background:
        linear-gradient(160deg, var(--glass-fill-a), var(--glass-fill-b) 60%),
        rgba(20, 18, 30, 0.3);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-top);
    border-left: 3px solid var(--purple);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--glass-shadow-sm);
}
.blow-card-link { cursor: pointer; }
.blow-card.announcement { border-left-color: var(--blue); }

.blow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.blow-header h4 { font-size: 16px; }

.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.7;
}
.delete-btn:hover { opacity: 1; }
.delete-btn img {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.blow-content {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 10px 0;
    line-height: 1.5;
}

.blow-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
}
.blow-footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.comment-count {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== Wind / Like / Dislike - small glass pills ===== */
.wind-btn, .like-btn, .dislike-btn,
.stamp-wind-btn, .stamp-like-btn, .stamp-dislike-btn {
    font-family: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--glass-border-top);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: 0.2s;
}
.wind-btn:hover, .stamp-wind-btn:hover { border-color: var(--purple); color: var(--purple-light); }
.wind-btn.blown, .stamp-wind-btn.blown {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 55%), var(--purple);
    border-color: var(--purple);
    color: white;
}

.like-btn:hover, .stamp-like-btn:hover { border-color: var(--green); color: var(--green-light); }
.like-btn.liked, .stamp-like-btn.liked {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 55%), var(--green);
    border-color: var(--green);
    color: #08150f;
}

.dislike-btn:hover, .stamp-dislike-btn:hover { border-color: var(--red); color: var(--red); }
.dislike-btn.disliked, .stamp-dislike-btn.disliked {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 55%), var(--red);
    border-color: var(--red);
    color: white;
}

/* ===== Save Button ===== */
.save-btn {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--glass-border-top);
    border-radius: var(--radius-pill);
    padding: 6px 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: 0.2s;
}
.save-btn:hover { border-color: var(--blue); color: var(--blue-light); }
.save-btn.saved {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 55%), var(--blue);
    border-color: var(--blue);
    color: #041018;
}

/* Ayin Sanatcisi - hero side card, biggest glass treatment */
.breeze-side { position: relative; }
.artist-card.sticky { position: sticky; top: 90px; }
.artist-image-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--purple);
    margin-bottom: 14px;
}
.artist-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.artist-card h3 { margin-bottom: 6px; }
.genre-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    color: var(--blue-light);
    font-size: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 10px;
}
.artist-bio { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ===== Blows Sayfasi ===== */
.blows-page {
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Library Empty State ===== */
.library-empty {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    padding: 40px 20px;
}
.library-empty a {
    color: var(--purple-light);
    font-weight: 600;
}

/* ===== Blow Detail Sayfasi ===== */
.blow-detail-page {
    max-width: 700px;
    margin: 0 auto;
}
.back-link {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}
.back-link:hover { color: var(--purple-light); }

/* ===== Comments (detail page) ===== */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 20px 0;
}
.no-comments {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
}

.comment-item {
    display: flex;
    gap: 12px;
    background: linear-gradient(160deg, var(--glass-fill-a), var(--glass-fill-b) 60%), rgba(20, 18, 30, 0.3);
    backdrop-filter: var(--glass-blur-soft);
    -webkit-backdrop-filter: var(--glass-blur-soft);
    border: 1px solid var(--glass-border-top);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--glass-shadow-sm);
}
.comment-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.comment-body { flex: 1; }
.comment-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}
.comment-author {
    color: var(--purple-light);
    font-weight: 600;
    font-size: 14px;
}
.comment-date {
    color: var(--text-secondary);
    font-size: 12px;
}
.comment-text {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.5;
}
.comment-text p { margin: 0 0 6px; }
.comment-text p:last-child { margin-bottom: 0; }
.comment-text ul { margin: 6px 0 6px 18px; }
.comment-text li { margin-bottom: 4px; }

/* ===== Comment Reactions ===== */
.comment-reactions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.comment-like-btn, .comment-dislike-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border-top);
    border-radius: var(--radius-pill);
    padding: 4px 10px;
    font-size: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: 0.2s;
}
.comment-delete-btn {
    margin-left: auto;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.7;
    align-self: center;
}
.comment-delete-btn:hover { opacity: 1; }
.comment-delete-btn img {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
}
.comment-delete-btn, .stamp-comment-delete-btn {
    margin-left: auto;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.7;
    align-self: center;
}
.comment-delete-btn:hover, .stamp-comment-delete-btn:hover { opacity: 1; }
.comment-delete-btn img, .stamp-comment-delete-btn img {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
}
.comment-like-btn:hover { border-color: var(--green); color: var(--green-light); }
.comment-like-btn.liked {
    background: var(--green);
    border-color: var(--green);
    color: #08150f;
}
.comment-dislike-btn:hover { border-color: var(--red); color: var(--red); }
.comment-dislike-btn.disliked {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

/* ===== Reply Box - hero-weight glass ===== */
.reply-box {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.reply-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.reply-main {
    flex: 1;
    background: linear-gradient(160deg, var(--glass-fill-a), var(--glass-fill-b) 60%), rgba(20, 18, 30, 0.35);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-top);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}
.reply-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 14px;
}
.reply-toolbar span {
    cursor: pointer;
    opacity: 0.7;
}
.reply-toolbar span:hover { opacity: 1; color: var(--purple-light); }

.reply-textarea {
    width: 100%;
    min-height: 90px;
    border: none;
    border-radius: 0;
    resize: vertical;
    padding: 14px 16px;
    font-size: 14px;
    background: transparent;
}
.reply-textarea:focus { border: none; outline: none; }

.reply-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.char-counter {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== Modal - deepest, biggest glass in the app ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 10, 0.5);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}
.modal-overlay.hidden { display: none; }

.modal {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(139, 92, 246, 0.06) 60%), rgba(18, 16, 28, 0.55);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-top);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 90%;
    max-width: 420px;
    box-shadow: var(--glass-shadow);
}
.modal h3 { margin-bottom: 16px; }
.modal form { display: flex; flex-direction: column; gap: 12px; }

input, textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
}
input:focus, textarea:focus { border-color: var(--purple); }
textarea { min-height: 90px; resize: vertical; }

.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ===== Notice Modal (Warning) ===== */
.notice-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--amber);
    margin-bottom: 12px;
}
.notice-icon { font-size: 18px; }
.notice-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin-bottom: 16px;
}
.notice-modal p {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: left;
}
.notice-modal .modal-actions {
    justify-content: center;
}

/* ===== Notifications ===== */
.notif-wrapper {
    position: relative;
}
.notif-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}
.notif-badge.hidden { display: none; }

.notif-dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    width: 300px;
    max-height: 360px;
    overflow-y: auto;
    background: linear-gradient(160deg, var(--glass-fill-a), var(--glass-fill-b) 60%), rgba(12, 11, 18, 0.88);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-top);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    z-index: 150;
}
.notif-dropdown.hidden { display: none; }

.notif-dropdown-header {
    padding: 12px 16px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notif-list {
    display: flex;
    flex-direction: column;
}

.notif-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255, 255, 255, 0.05); }
.notif-item.unread { background: rgba(139, 92, 246, 0.14); }
.notif-text { font-size: 13px; }
.notif-date { font-size: 11px; color: var(--text-secondary); }
.notif-empty {
    padding: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

/* ===== FindWind ===== */
.findwind-page {
    max-width: 700px;
    margin: 0 auto;
}
.findwind-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(160deg, var(--glass-fill-a), var(--glass-fill-b) 60%), rgba(20, 18, 30, 0.3);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-top);
    border-radius: var(--radius-pill);
    padding: 6px 6px 6px 18px;
    margin-bottom: 24px;
    box-shadow: var(--glass-shadow-sm);
}
.findwind-search-bar:focus-within { border-color: var(--purple); }
.findwind-search-icon { font-size: 16px; color: var(--text-secondary); }
.findwind-search-bar input {
    flex: 1;
    background: none;
    border: none;
    padding: 8px 0;
}
.findwind-search-bar input:focus { border: none; outline: none; }

.findwind-query-info {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}
.findwind-query-info strong { color: var(--text-primary); }

.findwind-section { margin-bottom: 28px; }
.findwind-section-title {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.findwind-user-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.findwind-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(160deg, var(--glass-fill-a), var(--glass-fill-b) 60%), rgba(20, 18, 30, 0.3);
    backdrop-filter: var(--glass-blur-soft);
    -webkit-backdrop-filter: var(--glass-blur-soft);
    border: 1px solid var(--glass-border-top);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: var(--glass-shadow-sm);
}
.findwind-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.findwind-empty {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    padding: 40px 20px;
}

/* ===== Auth Sayfalari ===== */
.auth-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 40px;
}
.auth-card { width: 100%; max-width: 380px; }
.auth-card h2 { margin-bottom: 20px; text-align: center; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; }
.auth-error {
    background: rgba(248, 113, 113, 0.12);
    color: var(--red);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 14px;
}
.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}
.auth-switch a { color: var(--purple-light); font-weight: 600; }

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 13px;
}

/* ===== Profile Page ===== */
.profile-page {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}
.profile-avatar-frame {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--purple);
    box-shadow: var(--glass-shadow-sm);
}
.profile-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.profile-username {
    font-size: 22px;
    margin-top: 4px;
}
.change-avatar-btn {
    display: inline-block;
    background: rgba(56, 189, 248, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--blue);
    padding: 7px 17px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.change-avatar-btn:hover {
    background: rgba(56, 189, 248, 0.16);
}


/* ===== Stamp (photo social feed) ===== */
.stamp-page, .stamp-detail-page {
    max-width: 600px;
    margin: 0 auto;
}

.stamp-feed {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.stamp-card {
    background:
        linear-gradient(160deg, var(--glass-fill-a), var(--glass-fill-b) 60%),
        rgba(20, 18, 30, 0.3);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-top);
    border-left: 3px solid var(--blue);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--glass-shadow);
}
.stamp-card-link { cursor: pointer; }

.stamp-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.stamp-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.stamp-card-header-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.stamp-author {
    color: var(--purple-light);
    font-weight: 600;
    font-size: 14px;
}
.stamp-date {
    color: var(--text-secondary);
    font-size: 12px;
}

.stamp-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    flex-shrink: 0;
}
.stamp-delete-btn:hover { opacity: 1; }
.stamp-delete-btn img {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.stamp-image-frame {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 12px;
}
.stamp-image {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    display: block;
}

.stamp-caption {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
}
.stamp-caption ul { margin: 6px 0 6px 20px; }
.stamp-caption p { margin: 4px 0; }

.stamp-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 13px;
}
.stamp-reactions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Compact 3-per-row stamp results inside FindWind */
.findwind-stamp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.findwind-stamp-tile {
    padding: 10px;
    cursor: pointer;
}
.findwind-stamp-tile .stamp-card-header {
    gap: 8px;
    margin-bottom: 8px;
}
.findwind-stamp-tile .stamp-avatar {
    width: 26px;
    height: 26px;
    border-width: 1.5px;
}
.findwind-stamp-tile .stamp-card-header-text {
    overflow: hidden;
}
.findwind-stamp-tile .stamp-author {
    font-size: 12px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.findwind-stamp-tile .stamp-date { font-size: 10px; }
.findwind-stamp-tile .stamp-delete-btn img { width: 16px; height: 16px; }
.findwind-stamp-tile .stamp-image-frame { margin-bottom: 0; }
.findwind-stamp-tile .stamp-image {
    aspect-ratio: 1 / 1;
    max-height: none;
    object-fit: cover;
}
.findwind-stamp-tile .stamp-card-footer {
    justify-content: flex-start;
    margin-top: 6px;
    font-size: 12px;
}

@media (max-width: 900px) {
    .findwind-stamp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .findwind-stamp-grid { grid-template-columns: 1fr; }
}

.stamp-empty {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    padding: 40px 20px;
}

/* New Stamp modal */
.stamp-photo-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.stamp-image-filename {
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stamp-image-preview-frame {
    border-radius: var(--radius-md);
    overflow: hidden;
    max-height: 260px;
}
.stamp-image-preview-frame.hidden { display: none; }
.stamp-image-preview-frame img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
}


/* ===== Profile: settings gear ===== */
.profile-settings-btn {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--glass-border-top);
    transition: 0.2s;
}
.profile-settings-btn:hover {
    border-color: var(--blue);
    transform: rotate(45deg);
}
.profile-settings-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ===== Danger button (delete account) ===== */
.danger-btn {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 55%),
        var(--red);
    color: #1a0505;
    border: none;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 16px rgba(248, 113, 113, 0.3);
}
.danger-btn:hover { filter: brightness(1.06); }
.danger-btn:disabled, .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* WindyAdmin approval box on a profile */
.deletion-request-box {
    margin-top: 10px;
    padding: 14px 18px;
    border: 1px solid var(--red);
    border-radius: var(--radius-md);
    background: rgba(248, 113, 113, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.deletion-request-box p { color: var(--red); font-size: 14px; font-weight: 600; }

/* ===== Settings page ===== */
.settings-page {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.settings-page .feed-header { margin-bottom: 0; }
.settings-section h3 { margin-bottom: 8px; }
.settings-danger { border-color: rgba(248, 113, 113, 0.5); }
.settings-hint {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 14px;
}
.settings-hint strong { color: var(--text-primary); }
.settings-form { display: flex; flex-direction: column; gap: 12px; }
.settings-form .btn-primary { align-self: flex-start; }
.settings-msg {
    background: rgba(248, 113, 113, 0.12);
    color: var(--red);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
}
.settings-msg.ok {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
}
.settings-msg.hidden { display: none; }
.settings-password-note {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: -4px;
}

/* ===== Library section titles ===== */
.library-section-title {
    margin: 18px 0 10px;
    color: var(--text-secondary);
    font-size: 15px;
}
.library-section-title:first-of-type { margin-top: 0; }

/* ===== Language switcher ===== */
.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.language-current {
    width: 34px;
    height: 34px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--glass-border-top);
    border-radius: 50%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.03);
    box-shadow: var(--glass-shadow-sm);
    transition: 0.2s ease;
}

.language-current:hover,
.language-current[aria-expanded="true"] {
    background: rgba(139, 92, 246, 0.20);
    border-color: rgba(139, 92, 246, 0.45);
    transform: translateY(-1px);
}

.language-current img,
.language-option img {
    width: 19px;
    height: 19px;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.language-menu {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    min-width: 132px;
    padding: 5px;
    display: none;
    flex-direction: column;
    gap: 3px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
        rgba(10, 10, 16, 0.82);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-top);
    border-radius: 14px;
    box-shadow: var(--glass-shadow);
}

.language-switcher.open .language-menu {
    display: flex;
}

.language-option {
    width: 100%;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: 0.18s ease;
}

.language-option:hover,
.language-option.active {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.20);
}

@media (max-width: 900px) {
    .navbar {
        padding: 10px 16px;
    }

    .language-current {
        width: 32px;
        height: 32px;
    }
}


/* ===== Mobile navigation & responsive layout ===== */
@media (max-width: 700px) {
    :root {
        --mobile-nav-height: 68px;
        --mobile-top-height: 58px;
    }

    body {
        padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    }

    /* Keep the utility actions at the top on phones. */
    .navbar {
        position: sticky;
        top: 0;
        min-height: var(--mobile-top-height);
        height: var(--mobile-top-height);
        padding: 8px 12px;
        gap: 8px;
        z-index: 200;
    }

    .navbar-left { min-width: 0; }
    .logo { font-size: 0; gap: 0; }
    .logo-icon { width: 34px; height: 34px; }

    .navbar-right {
        margin-left: auto;
        gap: 6px;
    }

    .navbar-right .username { display: none; }
    .navbar-right .login-btn,
    .navbar-right .signup-btn {
        padding: 6px 11px;
        font-size: 12px;
    }

    .icon-btn {
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255,255,255,.045);
        border: 1px solid rgba(255,255,255,.16);
    }
    .icon-img { width: 20px; height: 20px; }

    /* Main navigation becomes a bottom dock. */
    .navbar-center {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(8px + env(safe-area-inset-bottom));
        z-index: 300;
        width: auto;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 3px;
        padding: 6px;
        border-radius: 22px;
        background:
            linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.035)),
            rgba(10,10,16,.72);
        backdrop-filter: blur(28px) saturate(180%);
        -webkit-backdrop-filter: blur(28px) saturate(180%);
        box-shadow: 0 14px 42px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.35);
    }

    .navbar-center a {
        min-width: 0;
        min-height: 54px;
        padding: 6px 2px;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        border-radius: 16px;
        font-size: 10px;
        line-height: 1.1;
        white-space: nowrap;
    }

    .navbar-center a:hover { transform: none; }
    .navbar-center .nav-icon { width: 21px; height: 21px; }

    .page-content {
        width: 100%;
        max-width: none;
        padding: 18px 12px 28px;
    }

    .footer { padding-bottom: 8px; }

    /* Let common desktop grids collapse naturally. */
    .breeze-grid,
    .findwind-grid,
    .library-grid,
    .profile-grid,
    .settings-grid {
        grid-template-columns: 1fr !important;
    }

    .card {
        padding: 15px;
        border-radius: 20px;
    }

    .feed-header,
    .blow-header,
    .blow-footer,
    .stamp-photo-row {
        flex-wrap: wrap;
        gap: 9px;
    }

    .feed-header > * { min-width: 0; }
    .feed-header h1,
    .feed-header h2,
    .feed-header h3 { font-size: 20px; }

    .blow-card { padding: 14px; }
    .blow-content { font-size: 14px; overflow-wrap: anywhere; }

    /* Forms and controls should never overflow a phone screen. */
    input, textarea, select, button {
        max-width: 100%;
    }

    input, textarea, select {
        font-size: 16px;
    }

    form { max-width: 100%; }

    .modal-overlay { padding: 12px; }
    .modal {
        width: min(100%, 520px);
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        border-radius: 22px;
    }

    .notif-dropdown {
        position: fixed;
        top: calc(var(--mobile-top-height) + 7px);
        right: 10px;
        left: 10px;
        width: auto;
        max-height: min(60dvh, 430px);
    }

    .language-menu {
        position: fixed;
        top: calc(var(--mobile-top-height) + 7px);
        right: 10px;
        min-width: 145px;
        z-index: 500;
    }

    /* Dense result/photo grids become two columns on phones. */
    .findwind-stamp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .findwind-stamp-tile { padding: 8px; }
    .findwind-stamp-tile .stamp-image { min-height: 0; }

    img, video, iframe { max-width: 100%; }

    table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 430px) {
    .navbar { padding-left: 9px; padding-right: 9px; }
    .navbar-right { gap: 4px; }
    .language-current { width: 32px; height: 32px; }
    .icon-btn { width: 32px; height: 32px; }
    .icon-img { width: 19px; height: 19px; }

    .page-content { padding-left: 9px; padding-right: 9px; }
    .card { padding: 13px; }

    .navbar-center {
        left: 7px;
        right: 7px;
        bottom: calc(6px + env(safe-area-inset-bottom));
    }

    .navbar-center a {
        min-height: 52px;
        font-size: 9px;
    }
    .navbar-center .nav-icon { width: 20px; height: 20px; }

    .findwind-stamp-grid { grid-template-columns: 1fr; }
}

/* ===== Guaranteed mobile bottom navigation ===== */
.mobile-bottom-nav { display: none; }

@media (max-width: 700px) {
    :root {
        --mobile-bottom-height: 76px;
    }

    body {
        padding-bottom: calc(var(--mobile-bottom-height) + env(safe-area-inset-bottom) + 10px) !important;
        overflow-x: hidden;
    }

    .desktop-main-nav { display: none !important; }

    .navbar {
        position: sticky !important;
        top: 0 !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 58px !important;
        box-sizing: border-box;
        z-index: 1000 !important;
    }

    .mobile-bottom-nav {
        position: fixed;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: stretch;
        left: 8px;
        right: 8px;
        bottom: calc(7px + env(safe-area-inset-bottom));
        min-height: var(--mobile-bottom-height);
        padding: 6px;
        box-sizing: border-box;
        z-index: 5000;
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 22px;
        background: linear-gradient(180deg, rgba(30,27,45,.92), rgba(12,11,19,.94));
        backdrop-filter: blur(26px) saturate(160%);
        -webkit-backdrop-filter: blur(26px) saturate(160%);
        box-shadow: 0 14px 42px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.16);
    }

    .mobile-bottom-nav a {
        min-width: 0;
        min-height: 62px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 5px 1px;
        color: var(--text-secondary);
        text-decoration: none;
        border-radius: 16px;
        font-size: 9px;
        font-weight: 700;
        line-height: 1.1;
        text-align: center;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-bottom-nav a:hover,
    .mobile-bottom-nav a:active {
        color: var(--text-primary);
        background: rgba(139,92,246,.13);
    }

    .mobile-bottom-nav img,
    .mobile-bottom-nav svg {
        width: 25px;
        height: 25px;
        object-fit: contain;
        flex: 0 0 auto;
    }

    .mobile-bottom-nav span {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .page-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .footer { padding-bottom: 18px; }
}

@media (max-width: 380px) {
    .mobile-bottom-nav { left: 5px; right: 5px; border-radius: 19px; }
    .mobile-bottom-nav a { font-size: 8px; }
    .mobile-bottom-nav img,
    .mobile-bottom-nav svg { width: 22px; height: 22px; }
}

/* ===== Welcome / Onboarding Guide ===== */
.welcome-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 160px);
}

.welcome-card {
    max-width: 480px;
    width: 100%;
    text-align: center;
}

.welcome-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
.welcome-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.welcome-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--purple-light);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.welcome-panel h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.welcome-actions .btn-primary,
.welcome-actions .btn-secondary {
    width: 100%;
    text-align: center;
}

.welcome-progress {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
}
.welcome-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}
.welcome-dot.active {
    background: var(--purple);
}

.welcome-step { display: none; }
.welcome-step.active { display: block; }

.welcome-feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.welcome-feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.welcome-stamp-icon svg {
    width: 40px;
    height: 40px;
    color: var(--purple-light);
}

.welcome-guide-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}