/* * PetLoop Premium Global Style 
 * Letgo Style & Responsive Design
 */

:root {
    --primary: #ff6b6b;
    --primary-dark: #ee5253;
    --primary-light: #fff0f0;
    --secondary: #4ecdc4;
    --bg-body: #f7f9fc;
    --white: #ffffff;
    --text-dark: #2d3436;
    --text-gray: #636e72;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.12);
    --radius: 24px;
}

/* --- 1. Reset & Core --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 100px; /* Menü için alt boşluk */
    min-height: 100vh;
}

/* --- 2. Header (Glassmorphism) --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--text-dark);
}

/* --- 3. Responsive Grid Sistemi --- */
.pet-grid {
    display: grid;
    gap: 16px;
    padding: 16px;
}

/* Mobilde Yan Yana 2 Kart */
@media (min-width: 320px) { .pet-grid { grid-template-columns: 1fr 1fr; } }
/* Tablette Yan Yana 3 Kart */
@media (min-width: 768px) { .pet-grid { grid-template-columns: 1fr 1fr 1fr; } }
/* Masaüstünde Yan Yana 4-5 Kart */
@media (min-width: 1024px) { .pet-grid { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 24px; padding: 24px; } }

/* --- 4. Pet Card (Modern & Premium) --- */
.pet-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.pet-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Kare Görünüm */
    background: #eee;
}

.img-wrapper img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

.pet-card .content {
    padding: 12px;
}

.pet-card .name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pet-card .location {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

/* --- 5. LETGO STYLE BOTTOM NAV --- */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 480px;
    height: 75px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.5);
    z-index: 9999;
    padding: 0 10px;
}

.nav-item {
    text-decoration: none;
    color: #b2bec3;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    transition: 0.2s;
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 3px;
}

.nav-item span {
    font-size: 10px;
    font-weight: 700;
}

.nav-item.active {
    color: var(--primary);
}

/* ORTA BUTON (Letgo Floating Action) */
.nav-item.center-btn {
    position: relative;
    z-index: 10000;
}

.nav-item.center-btn .icon-box {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -50px; /* Yukarı taşma */
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
    border: 6px solid var(--bg-body); /* Derinlik veren kenarlık */
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item.center-btn .icon-box b {
    color: white;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
}

.nav-item.center-btn:active .icon-box {
    transform: scale(0.9) translateY(-5px);
}

.nav-item.center-btn span {
    margin-top: 5px;
    color: var(--primary);
}

/* --- 6. Form Styles --- */
.app-form .form-group {
    margin-bottom: 15px;
}

.app-form input, .app-form textarea, .app-form select {
    width: 100%;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #eee;
    background: white;
    outline: none;
    transition: 0.3s;
    font-size: 15px;
}

.app-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 18px;
    border-radius: 18px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    display: block;
    border: none;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.2);
}

/* Masaüstü Ek Özelleştirme */
@media (min-width: 1024px) {
    header { padding: 20px 40px; }
    .app-content { padding: 40px; }
    .bottom-nav { width: 450px; bottom: 30px; }
}

/* --- Menü Kontrolleri --- */

/* 1. Mobilde (Küçük Ekranlarda) Üst Menüyü Gizle */
.desktop-menu {
    display: none;
}

/* 2. Masaüstünde (Büyük Ekranlarda) Düzenleme */
@media (min-width: 1024px) {
    /* Alt menüyü tamamen gizle */
    .bottom-nav {
        display: none !important;
    }

    /* Üst menüyü görünür yap ve hizala */
    .desktop-menu {
        display: flex;
        align-items: center;
        gap: 30px;
    }

    .desktop-menu a {
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 600;
        font-size: 15px;
        transition: 0.3s;
    }

    .desktop-menu a:hover {
        color: var(--primary);
    }

    /* Masaüstü "İlan Ver" Butonu */
    .btn-upload-desktop {
        background: var(--primary);
        color: white !important;
        padding: 10px 20px;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(255, 107, 107, 0.2);
    }
    
    .btn-upload-desktop:hover {
        transform: translateY(-2px);
        background: var(--primary-dark);
    }
}
