@font-face {
    font-family: 'Opet Tr';
    src: url('../assets/fonts/OpetTRA.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Global Vars & Reset */
:root {
    /* Brand Colors */
    --togg-turquoise: #00B1B0;
    --togg-dark-blue: #004da1;
    /* Adjusted for screenshot look */
    --togg-purple: #B12B8A;
    --togg-darker-blue: #0f263b;
    --togg-black: #000000;
    --togg-white: #FFFFFF;

    /* UI Colors */
    --bg-light: #F4F5F9;
    --text-main: #333333;
    --text-muted: #666666;
    --border-soft: #E0E0E0;
    --card-shadow: none;
    /* Screenshot shows clean flat/subtle look */
    --hover-shadow: none;

    /* Spacing */
    --header-height: 80px;

    /* Utility Classes */
    --toast-success: #2ecc71;
    --toast-info: #3498db;
    --toast-error: #e74c3c;
    --toast-bg: #333333;
}

.desktop-only {
    display: inline-flex !important;
}

.mobile-only {
    display: none !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    padding-top: var(--header-height);
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Global Header */
.main-header {
    background: var(--togg-white);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 2000;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--togg-dark-blue);
    cursor: pointer;
    padding: 10px;
    z-index: 2001;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 100%;
    width: 100%;
    max-width: 100%;
    /* Uçlara yaslanması için */
    padding: 0 20px;
}

.header-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 38px;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: none;
    gap: 0;
    align-items: stretch;
    flex-wrap: nowrap;
    flex-direction: column;
}

/* Hamburger açık → menü görünür (tüm cihazlar) */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1999;
    padding: 8px 0;
    border-top: 2px solid var(--togg-turquoise);
}

.nav-links.active .nav-item {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--togg-dark-blue);
    border-bottom: 1px solid #f0f0f0;
    white-space: normal;
    text-align: left;
}

.nav-links.active .nav-item:last-child {
    border-bottom: none;
}

.nav-links.active .nav-item:hover {
    background: #f8f9fa;
    opacity: 1;
}

.nav-links.active .nav-item-disabled {
    color: #aaa;
    background: none;
}

/* =============================================
   DESKTOP SIDEBAR (≥ 769px)
   Hamburger gizlenir, menü sol panel olarak açılır
   ============================================= */
@media (min-width: 769px) {

    /* Header Hizalama */
    .header-container {
        justify-content: space-between !important;
    }

    .row-logo {
        width: 190px;
        /* Sidebar (210px) - Padding (20px) = 190px */
        display: flex;
        align-items: center;
    }

    /* Sağ Menü (Giriş / İlan Ver) her zaman sağ köşede olsun */
    .row-nav {
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    /* Hamburger'ı gizle */
    .menu-toggle {
        display: none !important;
    }

    /* nav-links → sabit sol sidebar */
    .nav-links {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 210px;
        height: calc(100vh - var(--header-height));
        background: #ffffff;
        border-right: 1px solid #e8eaed;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
        padding: 12px 0 24px;
        z-index: 100;
        overflow-y: auto;
        gap: 0;
    }

    /* Sidebar'daki her menü öğesi */
    .nav-links .nav-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 20px;
        font-size: 0.95rem;
        font-weight: 500;
        color: #333;
        border-bottom: 1px solid #f5f5f5;
        white-space: normal;
        text-align: left;
        transition: all 0.2s ease;
        border-left: 4px solid transparent;
        letter-spacing: 0.01em;
        text-decoration: none;
    }

    .nav-links .nav-item i {
        width: 20px;
        text-align: center;
        font-size: 1.1rem;
        color: var(--togg-dark-blue);
        opacity: 0.8;
    }

    .nav-links .nav-item:last-child {
        border-bottom: none;
    }

    .nav-links .nav-item:hover {
        background: #f8fbff;
        border-left: 4px solid var(--togg-turquoise);
        color: var(--togg-dark-blue);
        opacity: 1;
    }

    .nav-links .nav-item:hover i {
        opacity: 1;
        color: var(--togg-turquoise);
    }

    /* Devre dışı öğeler sidebar'da */
    .nav-links .nav-item-disabled {
        opacity: 0.45;
        cursor: default;
        pointer-events: none;
    }

    /* Ana içeriği sağa kaydır */
    body>main,
    body>.container,
    main,
    .admin-container,
    .contest-container,
    .profile-container,
    .main-footer {
        margin-left: 210px !important;
        margin-right: auto !important;
        max-width: calc(100% - 210px) !important;
        width: auto !important;
    }

    /* Hero (tam genişlik bölümler) — sadece sol padding yeterli */
    .hero {
        margin-left: 0;
    }
}

.nav-item {
    font-weight: 600;
    color: var(--togg-dark-blue);
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
}

.nav-item.multiline {
    white-space: normal;
    max-width: 90px;
    line-height: 1.2;
}

/* Devre dışı menü maddesi */
.nav-item-disabled {
    cursor: default;
    opacity: 0.45;
    pointer-events: none;
}

.nav-badge-soon {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    background: #e5e7eb;
    color: #6b7280;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 5px;
    vertical-align: middle;
    letter-spacing: 0.3px;
}

.auth-menu {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.nav-item:hover {
    opacity: 0.8;
}

.nav-item.btn-post-ad {
    background-color: #4da6ff;
    color: white !important;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.nav-item.btn-post-ad:hover {
    background-color: #3399ff;
    opacity: 1;
}

@media (max-width: 768px) {
    .main-header {
        height: auto;
        padding: 8px 0;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 10px;
        min-height: 56px;
        height: auto;
        gap: 6px;
    }

    .header-row {
        width: 100%;
        display: flex;
        align-items: center;
        position: relative;
    }

    .row-logo {
        padding: 0;
        border-bottom: none;
        width: auto;
    }

    .row-nav {
        padding: 0;
        gap: 8px;
    }

    .logo {
        position: static;
        transform: none;
        margin: 0;
    }

    .logo img {
        height: 36px;
        /* Optimized size for mobile */
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 8px;
        font-size: 1.4rem;
        z-index: 3001;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 1;
        min-width: 0;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .header-actions .auth-menu {
        gap: 6px;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
    }

    .header-actions .nav-item {
        font-size: 0.65rem;
        padding: 2px 4px;
        font-weight: 500;
        color: var(--togg-dark-blue);
        white-space: nowrap;
    }

    .header-actions .nav-item.user-link {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-actions .nav-item.user-link span {
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 75px;
        display: inline-block;
        vertical-align: middle;
    }

    .header-actions .btn-post-ad {
        padding: 4px 8px;
        font-size: 0.65rem;
        background-color: #4da6ff;
        color: white !important;
        border-radius: 4px;
        flex-shrink: 0;
    }

    .nav-links {
        position: absolute;
        top: 90px;
        /* Exact height of mobile header + extra breathing room */
        left: 0;
        width: 100%;
        height: auto;
        max-height: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease-in-out;
        z-index: 1500;
        display: flex !important;
        align-items: stretch !important;
        border-bottom: 2px solid var(--togg-turquoise);
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
    }

    .nav-links.active {
        max-height: 80vh;
        visibility: visible;
        opacity: 1;
        padding: 10px 0;
    }

    .nav-item {
        width: 100%;
        padding: 16px 24px;
        font-size: 1rem;
        text-align: left;
        border-bottom: 1px solid #f8f9fa;
        color: #0f263b !important;
        /* var(--togg-darker-blue) */
        font-weight: 500 !important;
        letter-spacing: -0.3px;
        transition: all 0.2s ease;
    }

    .nav-item:active,
    .nav-item:hover {
        background-color: rgba(0, 177, 176, 0.05);
        color: var(--togg-turquoise) !important;
        padding-left: 32px;
    }

    .nav-item.multiline {
        max-width: none !important;
        text-align: left;
        white-space: normal;
        line-height: 1.4;
    }

    body {
        padding-top: 90px;
    }

    .container {
        padding: 0 12px !important;
    }

    .card-info {
        padding: 12px !important;
    }
}

/* Models Section Mobile Alignment */
@media (max-width: 768px) {
    .models-section h3 {
        padding-left: 12px !important;
        /* Synced: 12px(container) + 12px(here) = 24px */
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
}

/* Listings Header & Controls - Mobile Sync */
@media (max-width: 768px) {
    .listings-header h3 {
        padding-left: 12px !important;
        /* Synced: 12px(container) + 12px(here) = 24px */
    }
}

.hero {
    background: url('../assets/banner.jpg') no-repeat center center/cover;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    background-position: center;
    /* Desktop centered */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    /* Reduced overlay for pop */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.hero h1 {
    font-family: 'Opet Tr', sans-serif !important;
    font-size: 3.5rem;
    font-weight: 400 !important;
    font-style: normal !important;
    text-transform: lowercase !important;
    margin-top: 40px;
    /* Pushed down from top */
    margin-bottom: 25px;
    /* More space before search bar */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -1px;
    line-height: 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.search-box {
    background: white;
    padding: 5px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
    border: 1px solid #ccc;
}

.search-box input {
    border: none;
    outline: none;
    flex: 1;
    padding: 10px 15px;
    font-size: 1rem;
    color: #333;
}

.search-box button {
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 15px;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Hero Mobile Adjustments */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 180px;
        padding: 20px 0;
        background-position: center bottom;
    }

    .hero h1 {
        font-family: 'Opet Tr', sans-serif !important;
        font-size: 1.8rem;
        text-transform: lowercase !important;
        font-weight: 400 !important;
        text-rendering: optimizeLegibility;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: auto;
        min-height: 140px;
        padding: 15px 0;
        background-position: center center;
        background-size: cover;
    }

    .hero h1 {
        font-family: 'Opet Tr', sans-serif !important;
        font-size: 1.5rem;
        text-transform: lowercase !important;
        font-weight: 400 !important;
        text-rendering: optimizeLegibility;
        margin-top: 5px;
        margin-bottom: 8px;
    }
}

/* Models Section */
.models-section {
    padding: 40px 0;
    margin-top: 20px;
}

.models-section h3 {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--togg-dark-blue);
    border-left: none;
    padding-left: 20px;
    font-weight: 600;
    /* Align with .card-info padding on desktop */
}

/* Listings Controls & View Modes */
.btn-view {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-view:hover {
    background: var(--bg-light);
    color: var(--togg-turquoise);
}

.btn-view.active {
    background: var(--togg-turquoise);
    color: white;
}

/* List View Layout - Table Style */
.listings-grid.view-list {
    display: block;
    /* Stack items vertically */
    gap: 0;
}

.list-view-header {
    display: grid;
    grid-template-columns: 120px 110px minmax(200px, 2fr) 60px 90px 80px 140px 100px 110px;
    gap: 15px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 2px solid var(--border-soft);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.listings-grid.view-list .listing-card {
    display: grid;
    grid-template-columns: 120px 110px minmax(200px, 2fr) 60px 90px 80px 140px 100px 110px;
    gap: 15px;
    height: auto;
    min-height: 90px;
    align-items: center;
    border: none;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    padding: 10px 15px;
    text-decoration: none;
}

.listings-grid.view-list .listing-card:hover {
    background-color: #fcfcfc;
    box-shadow: none;
    background: #ffffed;
    /* Highlight color similar to sahibinden */
}

/* Hide grid elements in list view if not needed, or restyle them */
.listings-grid.view-list .listing-img {
    width: 100%;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

.listings-grid.view-list .listing-details {
    padding: 0;
    display: contents;
    /* Allow children to participate in parent grid */
}

/* Specific Columns for List View */
.listings-grid.view-list .listing-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--togg-dark-blue);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    margin: 0;
    line-height: 1.4;
}

.listings-grid.view-list .listing-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--togg-turquoise);
    margin: 0;
    text-align: right;
}

/* New Attr Classes for List View Columns */
.listing-attr {
    display: none;
    /* Hidden by default in grid view */
    font-size: 0.95rem;
    color: #333;
}

.listings-grid.view-list .listing-attr {
    display: block;
}

.listings-grid.view-list .listing-meta {
    display: none;
    /* Hide old meta container in list view */
}

/* Mobile Responsiveness for List View */
@media (max-width: 768px) {
    .list-view-header {
        display: none !important;
        /* Hide header on mobile */
    }

    .listings-grid.view-list .listing-card {
        display: flex;
        flex-direction: row;
        gap: 15px;
        align-items: flex-start;
        height: auto;
        padding: 15px;
        border-bottom: 1px solid var(--border-soft);
    }

    .listings-grid.view-list .listing-img {
        width: 120px;
        height: 90px;
        flex-shrink: 0;
    }

    .listings-grid.view-list .listing-details {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    /* Show only essential info on mobile list view */
    .listings-grid.view-list .listing-attr {
        display: none;
    }

    .listings-grid.view-list .listing-attr.attr-loc,
    .listings-grid.view-list .listing-attr.attr-date {
        display: inline-block;
        font-size: 0.8rem;
        color: #999;
    }

    .listings-grid.view-list .listing-price {
        text-align: left;
        margin-top: 5px;
    }
}



.model-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.model-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    border: 1px solid var(--border-soft);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.model-card:hover {
    transform: translateY(-2px);
}

.card-image {
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    padding: 20px;
}

.card-info h4 {
    color: var(--togg-dark-blue);
    font-size: 1.1rem;
    margin-bottom: 5px;
    text-decoration: underline;
    font-weight: 600;
}

.card-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: underline;
}

.nav-item.highlight {
    color: var(--togg-purple);
}

/* Advertisement Banner */
.ad-banner-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.ad-banner-container {
    max-width: 728px;
    margin: 0 auto;
    min-height: 90px;
    background: white;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder {
    text-align: center;
    color: #999;
    padding: 20px;
}

.ad-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.ad-placeholder p {
    margin: 5px 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.ad-placeholder small {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Mobile Ad Banner */
@media (max-width: 768px) {
    .ad-banner-section {
        padding: 30px 0;
    }

    .ad-banner-container {
        max-width: 320px;
        min-height: 50px;
    }

    .ad-placeholder i {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-top: 30px;
        /* More space on mobile top */
        margin-bottom: 20px;
    }
}

/* Footer */
.main-footer {
    background: var(--togg-darker-blue);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 40px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--togg-turquoise);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Profile Page Styles */
.profile-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 60px 0;
    min-height: 700px;
}

/* Sidebar & User Card */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.user-card {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-soft);
}

.user-avatar-large {
    width: 100px;
    height: 100px;
    background: var(--togg-turquoise);
    color: white;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 5px 15px rgba(0, 177, 176, 0.3);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.user-avatar-large:hover {
    transform: scale(1.05);
}

.user-avatar-large:hover i {
    opacity: 0.8;
}

.user-card h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--togg-dark-blue);
}

.user-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

.sidebar-menu {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    padding: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 5px;
    font-weight: 500;
}

.menu-item:hover {
    background: var(--bg-light);
    color: var(--togg-turquoise);
}

.menu-item.active {
    background: rgba(0, 177, 176, 0.1);
    color: var(--togg-turquoise);
}

.menu-icon {
    width: 20px;
    text-align: center;
}

/* Content Area */
.content-area {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-soft);
}

.content-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 20px;
}

.section-title {
    font-size: 1.5rem;
    color: var(--togg-dark-blue);
    margin-bottom: 5px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Forms */
.profile-form {
    max-width: 100%;
}

.form-section-title {
    font-size: 1.1rem;
    color: var(--togg-dark-blue);
    margin-bottom: 20px;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-wrapper .form-control {
    padding-left: 45px;
    /* Space for icon */
    height: 48px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 1rem;
}

.input-wrapper .form-control:focus {
    border-color: var(--togg-turquoise);
    box-shadow: 0 0 0 3px rgba(0, 177, 176, 0.1);
}

.input-wrapper.disabled .form-control {
    background: #f9f9f9;
    color: #777;
    cursor: not-allowed;
}

.btn-lg {
    padding: 14px 30px;
    font-size: 1rem;
}

/* Listings Grid in Profile */
.my-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.mini-card {
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.2s;
}

.mini-card:hover {
    box-shadow: var(--hover-shadow);
}

.mini-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.mini-card-body {
    padding: 20px;
}

.mini-card-actions {
    padding: 15px 20px;
    background: #fdfdfd;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
}

/* Messages */
.msg-list-item {
    padding: 25px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 5px solid var(--togg-turquoise);
    background: white;
    transition: transform 0.2s;
}

.msg-list-item:hover {
    transform: translateX(5px);
}

.msg-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.msg-meta strong {
    color: var(--togg-dark-blue);
    font-weight: 600;
}

@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Splash screen styles removed - using native PWA splash only */

/* Share & Favorite Buttons - Listing Cards (REMOVED) */
/* These buttons are no longer shown on listing cards */

/* Detail Page - Image Actions */
.detail-image-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.detail-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--togg-dark-blue);
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.detail-action-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.detail-action-btn.favorite.active {
    color: #e74c3c;
}

.detail-action-btn.favorite.active i {
    font-weight: 900;
}

.detail-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    background: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    font-family: inherit;
}

.btn-action:hover {
    background: #f8f9fa;
    border-color: var(--togg-turquoise);
    color: var(--togg-turquoise);
}

.btn-action.favorite.active {
    color: #e74c3c;
    border-color: #e74c3c;
}

.btn-action.favorite.active i {
    font-weight: 900;
}

/* PWA Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 450px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #222;
    padding: 12px 16px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    transition: bottom 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.pwa-install-banner.active {
    bottom: 20px;
}

.pwa-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-info img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.pwa-text h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #004da1;
}

.pwa-text p {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: #555;
    font-weight: 500;
}

.pwa-btns {
    display: flex;
    gap: 8px;
}

.btn-pwa-install {
    background: var(--togg-turquoise);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 210, 217, 0.3);
}

.btn-pwa-close {
    background: transparent;
    color: #666;
    border: 1px solid #ccc;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-pwa-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Detail Page Gallery Optimization */
.gallery-main {
    height: 350px !important;
    /* Slightly smaller for better screen compatibility */
    background: #000 !important;
    cursor: zoom-in;
    position: relative;
    border-radius: 0 !important;
}

@media (max-width: 768px) {
    .gallery-main {
        height: 280px !important;
        /* Even smaller on mobile to see content below */
    }
}

.gallery-main img,
.gallery-main video {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    /* Show whole image without cutting */
}

/* Lightbox Modal (Zoom Feature) */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    overflow: hidden;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 95%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content-wrapper img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease-out;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--togg-turquoise);
}

#lightbox-caption {
    margin-top: 20px;
    color: #ccc;
    font-size: 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 20px;
}

/* Lightbox Navigation Buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--togg-dark-blue);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-size: 1.2rem;
}

.lightbox-nav:hover {
    background: white;
    color: var(--togg-turquoise);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Notification Prompt Banner */
.notify-prompt-banner {
    position: fixed;
    top: -100px;
    left: 0;
    right: 0;
    background: var(--togg-dark-blue);
    color: white;
    padding: 15px 20px;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: top 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notify-prompt-banner.active {
    top: 0;
}

.notify-prompt-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notify-prompt-content i {
    font-size: 1.5rem;
    color: var(--togg-turquoise);
}

.notify-prompt-text h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.notify-prompt-text p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

.notify-prompt-btns {
    display: flex;
    gap: 10px;
}

.btn-notify-allow {
    background: var(--togg-turquoise);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-notify-allow:hover {
    background: #008b8a;
}

.btn-notify-close {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}

@media (max-width: 600px) {
    .notify-prompt-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .notify-prompt-content {
        flex-direction: column;
        gap: 8px;
    }
}

/* Install Help Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.install-help-content {
    background: #1a202c;
    border: 1px solid var(--togg-turquoise);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.modal-overlay.active .install-help-content {
    transform: translateY(0);
}

.modal-logo {
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.install-help-content h3 {
    color: white !important;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.install-help-content p {
    color: #cbd5e0 !important;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.install-steps {
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.step:last-child {
    margin-bottom: 0;
}

.step-num {
    background: var(--togg-turquoise);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.step p {
    margin: 0;
    font-size: 0.95rem;
    color: white !important;
    line-height: 1.4;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
}

.modal-close:hover {
    opacity: 1;
}

/* Listings Header & Controls */
.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.listings-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--togg-dark-blue);
}

.listings-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.view-toggles {
    display: flex;
    gap: 5px;
    background: white;
    padding: 4px;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
}

/* Mobile Adjustments for Listings Header */
@media (max-width: 768px) {
    .listings-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .listings-header h3 {
        padding-left: 24px;
        font-size: 1.4rem;
        width: 100%;
    }

    .listings-controls {
        width: 100%;
        justify-content: space-between;
        padding: 0 5px;
        gap: 10px;
    }

    .sort-dropdown select {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

/* =============================================
   TWO-LAYERED SEARCH SYSTEM (v2)
   ============================================= */

.search-container-v2 {
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0;
}

.search-box-v2 {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    align-items: center;
    gap: 0;
    border: 1px solid #e0e0e0;
}

.search-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    min-width: 150px;
}

.search-group.location-group {
    flex: 1.6;
    display: flex;
    flex-direction: column;
}

.location-group-inner {
    display: flex;
    gap: 10px;
}

.location-group-inner select {
    flex: 1;
    min-width: 0; /* Prevent overflow */
}

.search-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--togg-dark-blue);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-group input,
.search-group select {
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    padding: 6px 0;
    width: 100%;
    outline: none;
    cursor: pointer;
}

.search-group input::placeholder {
    color: #bbb;
    font-weight: 400;
}

.search-divider {
    width: 1px;
    height: 40px;
    background: #eee;
}

.search-submit-btn {
    background: var(--togg-turquoise);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

.search-submit-btn:hover {
    background: #009695;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 177, 176, 0.3);
}

.search-extra-actions {
    margin-top: 15px;
    text-align: right;
    padding-right: 10px;
}

.advanced-search-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(0, 77, 161, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s;
}

.advanced-search-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

@media (max-width: 768px) {
    .search-container-v2 {
        margin: 15px auto 0;
        padding: 0 8px;
    }

    .search-box-v2 {
        flex-direction: column;
        padding: 14px;
        gap: 10px;
        margin-top: 0;
        border-radius: 10px;
    }

    .search-divider {
        display: none;
    }

    .search-group {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 8px;
    }

    .search-group label {
        font-size: 0.7rem;
        margin-bottom: 2px;
    }

    .search-group input,
    .search-group select {
        font-size: 0.88rem;
        padding: 4px 0;
    }

    .search-group:last-of-type {
        border-bottom: none;
        padding-bottom: 0;
    }

    .search-submit-btn {
        width: 100%;
        margin-left: 0;
        justify-content: center;
        margin-top: 6px;
        padding: 12px;
        font-size: 0.9rem;
    }

    .search-extra-actions {
        text-align: center;
        padding-right: 0;
        margin-top: 10px;
    }
}

/* =============================================
   COMMUNITY SUB-MENU SYSTEM
   ============================================= */

.nav-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
}

.nav-group>.nav-item {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-group>.nav-item::after {
    content: '\f078';
    /* fa-chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: auto;
    opacity: 0.7;
}

.nav-group.open>.nav-item::after {
    transform: rotate(180deg);
}

.nav-submenu {
    display: none;
    /* Hidden by default */
    flex-direction: column;
    background: #fcfcfc;
    border-bottom: 1px solid #f5f5f5;
    overflow: hidden;
}

.nav-group.open .nav-submenu {
    display: flex;
}

.nav-subitem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 45px;
    /* Indented for hierarchy */
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.nav-subitem:hover {
    background: #f0f7ff;
    color: var(--togg-turquoise);
    border-left-color: var(--togg-turquoise);
}

.nav-subitem i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
    opacity: 0.7;
}

/* Mobile Adjustments for Submenu */
@media (max-width: 768px) {
    .nav-submenu {
        background: #f9f9f9;
        padding: 5px 0;
    }

    .nav-subitem {
        padding: 12px 30px 12px 60px;
        font-size: 0.95rem;
        border-bottom: 1px solid #eee;
    }

    .nav-subitem:last-child {
        border-bottom: none;
    }
}

/* Ayın Togg'u Kazananı Banner (Home) */
#winner-banner-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.winner-display-card {
    background: linear-gradient(135deg, #0f263b 0%, #004da1 100%);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: 0 15px 35px rgba(0, 77, 161, 0.2);
    margin-top: 20px;
}

.winner-display-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.winner-badge-main {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ffc107;
    color: #000;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    z-index: 2;
}

.winner-content-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.winner-image-box {
    flex: 1.2;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    aspect-ratio: 16/9;
}

.winner-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.winner-info-box {
    flex: 1;
}

.winner-info-box h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.winner-info-box p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.winner-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 12px;
}

.stat-item i {
    color: #ffc107;
}

.btn-view-contest {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--togg-turquoise);
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-contest:hover {
    transform: translateX(10px);
    background: #008b8a;
    color: white;
}

@media (max-width: 992px) {
    .winner-content-layout {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .winner-image-box {
        width: 100%;
    }
    .winner-stats {
        justify-content: center;
    }
    .winner-badge-main {
        position: static;
        display: inline-block;
        margin-bottom: 15px;
    }
    .winner-info-box h2 {
        font-size: 1.8rem;
    }
}