/* Genel Stil Ayarları */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Screen Reader Only - SEO ve Erişilebilirlik için */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo Container */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px 30px;
    background: var(--bg-color);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    max-width: 200px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Arama Bölümü */
.arama-bolumu {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px 40px;
    background: var(--bg-color);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.arama-wrapper {
    position: relative;
    max-width: 800px;
    width: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.arama-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.03), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.arama-wrapper:focus-within {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.05),
        0 0 0 4px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transform: translateY(-3px) scale(1.01);
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
}

.arama-wrapper:focus-within::before {
    left: 100%;
}

.arama-icon {
    padding: 0 20px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.arama-wrapper:focus-within .arama-icon {
    color: var(--text-color);
    transform: scale(1.1);
}

.arama-input {
    flex: 1;
    padding: 18px 0;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-color);
    background: transparent;
    font-weight: 400;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.arama-wrapper:focus-within .arama-input {
    color: var(--text-color);
}

.arama-input::placeholder {
    color: var(--text-lighter);
}

.arama-temizle {
    padding: 0 20px;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
    position: relative;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    justify-content: center;
    margin-right: 8px;
}

.arama-temizle:hover {
    color: var(--accent-color);
    background: rgba(236, 72, 153, 0.1);
    transform: rotate(90deg) scale(1.1);
}

.arama-sonuc-sayisi {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

/* Tema Listesi */
.tema-listesi {
    padding: 40px 0 80px;
    min-height: 60vh;
}

/* Tema Grid */
.tema-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tema Kart */
.tema-kart {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
    opacity: 0;
    transform: translateY(40px) scale(0.92) perspective(1000px) rotateX(5deg);
    animation: cardEntrance 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    position: relative;
    backdrop-filter: blur(20px);
    isolation: isolate;
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.92) perspective(1000px) rotateX(5deg);
    }
    60% {
        transform: translateY(-5px) scale(1.02) perspective(1000px) rotateX(-1deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) perspective(1000px) rotateX(0deg);
    }
}

/* Glow efekti için gradient overlay */
.tema-kart::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.02) 30%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.1);
    }
}

.tema-kart::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.02) 0%,
        rgba(0, 0, 0, 0.01) 50%,
        rgba(0, 0, 0, 0.02) 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
    border-radius: 24px;
}

.tema-kart:hover {
    transform: translateY(-12px) scale(1.02) perspective(1000px) rotateX(-1deg) rotateY(1deg);
    box-shadow: 
        0 24px 48px rgba(0, 0, 0, 0.12),
        0 12px 24px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
}

.tema-kart:hover::before {
    opacity: 1;
    animation: glowIntense 2s ease-in-out infinite;
}

@keyframes glowIntense {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.tema-kart:hover::after {
    opacity: 1;
}

.tema-kart.fade-in {
    animation: fadeInCard 0.4s ease-out forwards;
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(20px) rotateY(-5deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateY(0);
    }
}

.tema-resim {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    border-radius: 20px 20px 0 0;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tema-resim::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.tema-kart:hover .tema-resim::before {
    opacity: 1;
}

.tema-resim img,
.tema-resim-ana,
.tema-resim-hover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), filter 1s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(100%) brightness(0.9) contrast(1.1);
    will-change: opacity, filter;
}

.tema-resim-ana {
    opacity: 1;
    z-index: 2;
    transform: scale(1) translateZ(0);
}

.tema-resim-hover {
    opacity: 0;
    z-index: 1;
    transform: scale(1) translateZ(0);
    filter: grayscale(100%) brightness(0.9) contrast(1.1);
}

/* Aktif resimler için grayscale kaldır */
.tema-resim-ana.aktif,
.tema-resim-hover.aktif {
    filter: grayscale(0%) brightness(1) contrast(1);
}

.placeholder-resim {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 600;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    backdrop-filter: blur(20px) saturate(180%);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.95) 0%, rgba(219, 39, 119, 0.95) 100%);
    color: var(--white);
    box-shadow: 
        0 4px 12px rgba(236, 72, 153, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.tema-kart:hover .badge {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 
        0 6px 16px rgba(236, 72, 153, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.tema-icerik {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 253, 254, 0.99) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.tema-kart:hover .tema-icerik {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(253, 254, 255, 1) 100%);
    border-top-color: rgba(0, 0, 0, 0.05);
}

.tema-baslik {
    font-size: 15px;
    margin-bottom: 0;
    color: var(--text-color);
    line-height: 1.5;
    font-weight: 600;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.2px;
    transition: all 0.4s ease;
    position: relative;
}

.tema-kart:hover .tema-baslik {
    color: var(--text-color);
    transform: translateX(1px);
}

.tema-kategori {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 14px;
    font-weight: 500;
}

.tema-bilgiler {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.bilgi-etiket {
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-color);
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.tema-fiyat {
    margin-bottom: 18px;
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

.tema-linkler {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    margin-top: auto;
    padding-top: 4px;
    position: relative;
    z-index: 3;
    width: 100%;
}

/* Butonlar */
.btn {
    padding: 6px 10px;
    border: none;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-align: center;
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    letter-spacing: 0;
    z-index: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    white-space: nowrap;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: #ffffff;
}

a.btn {
    color: #ffffff;
}

a.btn:visited {
    color: #ffffff;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-demo {
    background: #6366f1;
    color: #ffffff;
}

.btn-demo:hover {
    background: #4f46e5;
}

.btn-admin {
    background: #10b981;
    color: #ffffff;
}

.btn-admin:hover {
    background: #059669;
}

.btn-seo {
    background: #f59e0b;
    color: #ffffff;
}

.btn-seo:hover {
    background: #d97706;
}

.btn-detay {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-detay:hover {
    background: linear-gradient(135deg, #db2777 0%, #ec4899 100%);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Yükleniyor */
.yukleniyor {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.yukleniyor p {
    font-size: 16px;
    font-weight: 500;
}

/* Boş Sonuç */
.bos-sonuc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: var(--text-light);
}

.bos-sonuc svg {
    margin-bottom: 24px;
    color: var(--text-lighter);
    opacity: 0.5;
}

.bos-sonuc p {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Responsive Tasarım */
@media (max-width: 1600px) {
    .tema-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

@media (max-width: 1400px) {
    .tema-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

@media (max-width: 1024px) {
    .tema-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .logo-container {
        padding: 30px 20px 20px;
    }

    .logo-image {
        max-width: 150px;
        max-height: 60px;
    }

    .logo-text {
        font-size: 28px;
    }

    .arama-bolumu {
        padding: 0 15px 30px;
    }

    .arama-wrapper {
        border-radius: 12px;
    }

    .arama-input {
        padding: 16px 0;
        font-size: 15px;
    }

    .tema-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .tema-listesi {
        padding: 30px 0 60px;
    }

    .tema-kart {
        transform: translateY(0) scale(1) !important;
        perspective: none !important;
    }

    .tema-kart:hover {
        transform: translateY(-8px) scale(1.02) !important;
    }

    .tema-icerik {
        padding: 16px;
    }

    .tema-baslik {
        font-size: 14px;
        min-height: 40px;
    }

    .btn {
        padding: 6px 10px;
        font-size: 9px;
        border-radius: 5px;
    }
    
    .tema-linkler {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .logo-container {
        padding: 25px 15px 15px;
    }

    .logo-image {
        max-width: 120px;
        max-height: 50px;
    }

    .logo-text {
        font-size: 24px;
    }

    .arama-wrapper {
        border-radius: 10px;
    }

    .arama-input {
        padding: 14px 0;
        font-size: 14px;
    }

    .arama-icon {
        padding: 0 15px;
    }

    .arama-temizle {
        padding: 0 15px;
    }

    .tema-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tema-linkler {
        flex-wrap: wrap;
        gap: 6px;
    }

    .btn {
        flex: 1;
        min-width: 0;
        padding: 5px 8px;
        font-size: 8px;
        border-radius: 5px;
    }
}

/* Scroll Animasyonları */
@media (prefers-reduced-motion: no-preference) {
    .tema-kart {
        animation-delay: calc(var(--index, 0) * 0.03s);
    }
    
    .tema-kart.visible {
        animation: slideUpScale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
}

/* Pulse animasyonu */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes searchPulse {
    0%, 100% {
        transform: translateY(-3px) scale(1.01);
    }
    50% {
        transform: translateY(-4px) scale(1.015);
    }
}

.arama-wrapper {
    animation: aramaTitreme 3s infinite;
}

/* Arama titreme animasyonu - 3 saniyede bir titreme */
@keyframes aramaTitreme {
    0%, 98.5% {
        transform: translateX(0);
    }
    98.6% {
        transform: translateX(2px);
    }
    98.7% {
        transform: translateX(-2px);
    }
    98.8% {
        transform: translateX(2px);
    }
    98.9% {
        transform: translateX(-1px);
    }
    99% {
        transform: translateX(0);
    }
    99.1%, 100% {
        transform: translateX(0);
    }
}

/* Shake animasyonu */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Glow efekti */
.tema-kart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    opacity: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.tema-kart:hover::before {
    opacity: 1;
}

.tema-kart > * {
    position: relative;
    z-index: 1;
}

/* Loading shimmer efekti */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    background: linear-gradient(
        90deg,
        #f0f0f0 0px,
        #e0e0e0 40px,
        #f0f0f0 80px
    );
    background-size: 1000px;
    animation: shimmer 2s infinite;
}
