/*
Theme Name: Kayıp Eşya Tema
Author: Antigravity
Description: A modern Lost & Found theme matching the Flutter App design.
Version: 1.1
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #3F51B5;
    /* Deep Indigo */
    --primary-light: #C5CAE9;
    --accent: #FF7043;
    /* Coral */
    --bg: #F5F7FA;
    --text: #333333;
    --text-light: #757575;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

/* Header */
.site-header {
    background: var(--bg);
    /* Transparent/BG match */
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--text-light);
}

.nav-link:hover {
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background: #303F9F;
    transform: translateY(-1px);
}

/* Hero & General Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 80vh;
}

.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #1a1a1a;
    letter-spacing: -1px;
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* Forms */
.form-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--primary);
    outline: 2px solid rgba(63, 81, 181, 0.1);
}

.pin-section {
    background: #E3F2FD;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px dashed #2196F3;
    margin-bottom: 24px;
}

/* Detail Gallery Styles */
.gallery-section {
    margin-bottom: 30px;
    padding: 50px;
}

.cover-image {
    width: 100%;
    height: 450px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    margin-bottom: 20px;
    cursor: zoom-in;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft large shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cover-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.cover-image::after {
    content: 'Büyütmek için tıkla';
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
}

.cover-image:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 1;
    /* Square */
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gallery-thumb:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    /* Darker backdrop */
    z-index: 10000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: fadeIn 0.2s ease-out;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    animation: zoomIn 0.3s ease-out forwards;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    to {
        transform: scale(1);
    }
}

/* Cards & Badges */
.status-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pill-active {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.pill-resolved {
    background: #424242;
    color: #fff;
    border: 1px solid #212121;
}

.detail-container {
    background: var(--white);
    border-radius: 24px;
    /* More rounded */
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    /* Premium shadow */
    max-width: 1000px;
    margin: 40px auto;
}

.detail-content {
    padding: 50px;
}

/* ... Existing footer and others ... */
.site-footer {
    background: #fff;
    border-top: 1px solid #eee;
    margin-top: 60px;
    padding: 40px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left strong {
    display: block;
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
}

.footer-left p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

.footer-right {
    display: flex;
    gap: 20px;
}

.footer-right a {
    padding: 8px 16px;
    border: 1px solid #eee;
    border-radius: 4px;
    border-bottom: 2px solid #ddd;
    transition: 0.2s;
    font-weight: 600;
    color: #555;
}

.footer-right a:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f5f5f5;
    color: #999;
    font-size: 13px;
}

/* Modal General */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* RESTORED STYLES FOR HOME & SEARCH */

/* Keyword Cloud */
.keyword-section {
    margin-top: 30px;
}

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.keyword-tag {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
    transition: 0.2s;
}

.keyword-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Item Grid & Cards */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.item-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eee;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-img {
    height: 200px;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.badge-found {
    background: #4CAF50;
}

.badge-resolved {
    background: #424242;
}

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
}

.card-desc {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #ddd;
    color: #555;
    font-weight: 600;
    transition: 0.2s;
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}