/* =========================================================
   Minisko Oyuncak — Modern Katalog Stilleri
   ========================================================= */

:root {
    /* Minisko logo paleti */
    --logo-orange: #f39200;
    --logo-yellow: #f5c400;
    --logo-red: #b8332a;
    --logo-blue: #2aa9e0;
    --logo-green: #6fa84a;
    --logo-purple: #7a5a8c;

    --primary: #f39200;
    --primary-dark: #d27a00;
    --primary-light: #ffb84d;
    --secondary: #2aa9e0;
    --accent: #6fa84a;
    --bg: #fffaf0;
    --bg-soft: #fff3dc;
    --surface: #ffffff;
    --text: #2b2d42;
    --text-soft: #5b6075;
    --muted: #9aa0b4;
    --border: #f1e6cf;
    --shadow-sm: 0 2px 6px rgba(40, 30, 20, 0.06);
    --shadow-md: 0 8px 24px rgba(243, 146, 0, 0.18);
    --shadow-lg: 0 20px 50px rgba(40, 30, 20, 0.10);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --gradient-warm: linear-gradient(135deg, #f39200 0%, #f5c400 100%);
    --gradient-rainbow: linear-gradient(135deg, #b8332a 0%, #f39200 25%, #f5c400 50%, #6fa84a 75%, #2aa9e0 100%);
    --gradient-soft: linear-gradient(135deg, #fff3dc 0%, #e8f4ec 50%, #e0f0f9 100%);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--bg);
    background-image:
        radial-gradient(at 8% 0%, rgba(243, 146, 0, 0.10) 0, transparent 40%),
        radial-gradient(at 95% 12%, rgba(245, 196, 0, 0.10) 0, transparent 45%),
        radial-gradient(at 90% 85%, rgba(42, 169, 224, 0.08) 0, transparent 45%),
        radial-gradient(at 10% 90%, rgba(111, 168, 74, 0.07) 0, transparent 45%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   Header
   ========================================================= */
header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    padding: 0.9rem 2rem;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 6px 20px rgba(40, 30, 20, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(243, 146, 0, 0.12);
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.logo img {
    height: 44px;
    width: auto;
    display: block;
    transition: transform var(--transition);
    filter: drop-shadow(0 2px 6px rgba(40, 30, 20, 0.08));
}

.logo:hover img {
    transform: scale(1.04) rotate(-2deg);
}

.controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

select,
button {
    padding: 0.55rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
    transition: all var(--transition);
}

select:hover,
button:hover {
    border-color: var(--primary-light);
}

button.primary,
.pdf-btn {
    background: var(--gradient-warm);
    color: white;
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    letter-spacing: 0.01em;
}

button.primary:hover,
.pdf-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(243, 146, 0, 0.32);
}

button.primary:active,
.pdf-btn:active {
    transform: translateY(0);
}

.admin-link {
    text-decoration: none;
    color: var(--text-soft);
    padding: 0.55rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.admin-link:hover {
    background: var(--bg-soft);
    color: var(--primary-dark);
    border-color: var(--primary-light);
}

/* Language Flags */
.language-flags {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.lang-btn {
    background: transparent;
    border: 1px solid transparent;
    font-size: 1.25rem;
    padding: 0.25rem 0.55rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all var(--transition);
    opacity: 0.55;
    filter: grayscale(80%);
    line-height: 1;
}

.lang-btn:hover {
    opacity: 0.9;
    filter: grayscale(20%);
}

.lang-btn.active {
    opacity: 1;
    filter: none;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transform: scale(1.05);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
    max-width: 1100px;
    margin: 2.5rem auto 1rem;
    padding: 2.75rem 2rem;
    border-radius: var(--radius-xl);
    background: var(--gradient-soft);
    border: 1px solid rgba(243, 146, 0, 0.14);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    pointer-events: none;
}

.hero::before {
    width: 240px;
    height: 240px;
    background: rgba(243, 146, 0, 0.32);
    top: -70px;
    left: -50px;
}

.hero::after {
    width: 280px;
    height: 280px;
    background: rgba(42, 169, 224, 0.22);
    bottom: -90px;
    right: -60px;
}

.hero-content::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    background: rgba(111, 168, 74, 0.22);
    border-radius: 50%;
    filter: blur(50px);
    bottom: -40px;
    left: 30%;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(8px);
    color: var(--primary-dark);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(243, 146, 0, 0.22);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.hero h1 .accent {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 .accent:nth-of-type(2) {
    background: linear-gradient(135deg, var(--logo-blue) 0%, var(--logo-green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-soft);
    max-width: 580px;
    margin: 0 auto;
}

/* =========================================================
   Category Filter
   ========================================================= */
.categories {
    max-width: 1100px;
    margin: 1.5rem auto 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.category-btn {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-soft);
    transition: all var(--transition);
}

.category-btn:hover {
    background: var(--bg-soft);
    color: var(--primary-dark);
    border-color: var(--primary-light);
    transform: translateY(-1px);
}

.category-btn.active {
    background: var(--gradient-warm);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

/* =========================================================
   Product List (Zig-Zag Modern)
   ========================================================= */
.product-list {
    max-width: 1100px;
    margin: 2rem auto 4rem;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease both;
}

.product-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-soft);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
    z-index: 0;
}

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(243, 146, 0, 0.3);
}

.product-item:hover::before {
    opacity: 0.4;
}

.product-item>* {
    position: relative;
    z-index: 1;
}

.product-item:nth-child(even) {
    flex-direction: row-reverse;
}

.product-image {
    flex: 0 0 38%;
    text-align: center;
    position: relative;
}

.product-image::after {
    content: "";
    position: absolute;
    inset: 12% 6%;
    background: var(--gradient-warm);
    filter: blur(28px);
    opacity: 0.18;
    z-index: -1;
    border-radius: 50%;
    transition: opacity var(--transition);
}

.product-item:hover .product-image::after {
    opacity: 0.32;
}

.product-image img {
    max-width: 100%;
    height: auto;
    max-height: 260px;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(40, 30, 20, 0.12);
    transition: transform var(--transition);
    object-fit: cover;
}

.product-item:hover .product-image img {
    transform: scale(1.03) rotate(-0.5deg);
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-title {
    font-size: 1.5rem;
    margin: 0 0 0.6rem;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.product-desc {
    font-size: 0.98rem;
    color: var(--text-soft);
    white-space: pre-line;
    margin: 0;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-soft);
}

.empty-state .emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.empty-state h3 {
    margin: 0 0 0.5rem;
    color: var(--text);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    margin-top: 3rem;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.site-footer .brand {
    font-weight: 700;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================================
   Animations
   ========================================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 768px) {
    header {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .controls {
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .admin-link,
    .pdf-btn {
        font-size: 0.8rem;
        padding: 0.45rem 0.8rem;
    }

    .hero {
        margin: 1.5rem 1rem 0.5rem;
        padding: 2rem 1.25rem;
        border-radius: var(--radius-lg);
    }

    .product-item {
        flex-direction: column !important;
        gap: 1.25rem;
        padding: 1.25rem;
        text-align: center;
    }

    .product-image {
        flex: 1 1 auto;
        width: 100%;
    }

    .product-image img {
        max-height: 220px;
    }

    .product-title {
        font-size: 1.25rem;
    }
}

/* =========================================================
   Print / PDF Styles (kataloglar için optimize)
   ========================================================= */
@media print {
    @page {
        margin: 1cm;
        size: A4;
    }

    body {
        font-size: 12px;
        background: white !important;
        background-image: none !important;
        color: #000;
    }

    header,
    .categories,
    .controls,
    .hero,
    .site-footer {
        display: none !important;
    }

    .product-list {
        margin: 0;
        padding: 0;
        max-width: 100%;
        width: 100%;
        gap: 0;
    }

    .product-item {
        display: flex !important;
        flex-direction: row !important;
        margin-bottom: 0.5cm;
        padding: 0.5cm 0;
        background: transparent !important;
        border: none;
        border-bottom: 1px solid #ddd;
        border-radius: 0;
        box-shadow: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
        animation: none;
    }

    .product-item::before,
    .product-image::after {
        display: none !important;
    }

    .product-image {
        flex: 0 0 25%;
    }

    .product-image img {
        max-height: 150px;
        box-shadow: none;
        border-radius: 0;
    }

    .product-info {
        flex: 1;
        padding-left: 1cm;
    }

    .product-item:nth-child(even) .product-info {
        padding-left: 0;
        padding-right: 1cm;
    }

    .product-title {
        font-size: 14pt;
        margin-top: 0;
        color: #000;
    }

    .product-desc {
        font-size: 10pt;
        color: #222;
    }
}
