/* Mobil Öncelikli Tasarım */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #333;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --safe-area-inset-bottom: env(safe-area-inset-bottom);
    --container-padding: 1rem;
    --app-background: #f0f2f5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--app-background);
    color: var(--text-color);
    -webkit-tap-highlight-color: transparent;
    padding-bottom: var(--safe-area-inset-bottom);
    margin: 0;
    width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Sayfa Geçiş Animasyonları */
.page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--app-background);
    z-index: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(0);
    transition: transform 0.3s ease-in-out;
}

.page.slide-left {
    transform: translateX(-100%);
}

.page.slide-right {
    transform: translateX(100%);
}

/* Container Düzenlemeleri */
.container {
    width: 100%;
    max-width: 100%;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

/* Navbar Mobil Optimizasyonu */
.navbar {
    background-color: #fff;
    box-shadow: var(--card-shadow);
    padding: 0.8rem var(--container-padding);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.back-button {
    background: none;
    border: none;
    padding: 0.5rem;
    margin-right: 0.5rem;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Kartlar için Mobil Optimizasyon */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 1rem;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
}

.card:active {
    transform: scale(0.98);
}

.card-img-top {
    height: 180px;
    object-fit: contain;
    padding: 1rem;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

/* Operatör Kartları */
.operator-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 1rem;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.2s ease;
}

.operator-card:active {
    transform: scale(0.98);
}

.operator-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    box-sizing: border-box;
}

.operator-card .card-body {
    padding: 1rem;
}

.operator-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Telefon Kartları */
.phone-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 1rem;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.2s ease;
}

.phone-card:active {
    transform: scale(0.98);
}

.phone-card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    padding: 1rem;
    background: #fff;
    box-sizing: border-box;
}

.phone-card .card-body {
    padding: 1rem;
}

.phone-card .card-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.phone-card .price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Detay Sayfası */
.product-gallery {
    height: 280px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.product-gallery .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #fff;
}

.product-gallery img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    box-sizing: border-box;
}

.product-details {
    background: white;
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: var(--card-shadow);
    width: 100%;
    box-sizing: border-box;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Butonlar */
.btn {
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    font-weight: 500;
    font-size: 1rem;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border: none;
}

/* Mobil Optimizasyonlar */
@media (max-width: 768px) {
    :root {
        --container-padding: 0.8rem;
    }
    
    .page {
        padding-bottom: 60px;
    }
    
    .bottom-nav {
        display: flex;
    }
    
    .card-img-top {
        height: 160px;
    }
    
    .product-gallery {
        height: 240px;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
    
    .product-price {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    :root {
        --container-padding: 0.6rem;
    }
    
    .navbar {
        padding: 0.6rem var(--container-padding);
    }
    
    .page {
        padding-bottom: 60px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .card-img-top {
        height: 140px;
    }
    
    .product-gallery {
        height: 200px;
    }
    
    .product-title {
        font-size: 1.2rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 0.8rem;
    }
}

/* Dokunmatik Geri Bildirim */
@media (hover: none) {
    .card:active,
    .btn:active {
        transform: scale(0.98);
    }
}

/* iOS Safe Area Desteği */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(var(--container-padding), env(safe-area-inset-left));
        padding-right: max(var(--container-padding), env(safe-area-inset-right));
    }
    
    .bottom-nav {
        padding-bottom: max(0.5rem, calc(0.5rem + var(--safe-area-inset-bottom)));
    }
    
    .page {
        padding-top: max(0px, env(safe-area-inset-top));
    }
}

/* Yükleme Animasyonu */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

/* Pull-to-Refresh İndikatörü */
.pull-to-refresh {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    background: var(--app-background);
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    padding-bottom: calc(0.5rem + var(--safe-area-inset-bottom));
    display: flex;
    justify-content: space-around;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.5rem;
}

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

.bottom-nav-icon {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

/* Sayfa Geçiş Animasyonları */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Teknik Özellikler */
.technical-specs {
    background: white;
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 1rem;
    overflow: hidden;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: var(--app-background);
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.spec-item:active {
    transform: scale(0.98);
}

.spec-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
    object-fit: contain;
}

.spec-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.spec-value {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

.specs-details {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1.5rem;
}

.specs-section {
    margin-bottom: 1.5rem;
}

.specs-section:last-child {
    margin-bottom: 0;
}

.specs-section h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.specs-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.specs-row:last-child {
    border-bottom: none;
}

.specs-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
    flex: 1;
}

.specs-value {
    font-weight: 500;
    font-size: 0.9rem;
    text-align: right;
    flex: 2;
}

.show-all-specs {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.8rem;
    background: var(--app-background);
    border: none;
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.2s ease;
}

.show-all-specs:active {
    background: rgba(13, 110, 253, 0.1);
}

.show-all-specs-icon {
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
    font-size: 0.8rem;
}

.show-all-specs.active .show-all-specs-icon {
    transform: rotate(180deg);
}

/* Mobil Optimizasyonlar */
@media (max-width: 576px) {
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .spec-item {
        padding: 0.8rem;
    }
    
    .spec-icon {
        width: 40px;
        height: 40px;
    }
    
    .spec-label {
        font-size: 0.8rem;
    }
    
    .spec-value {
        font-size: 0.9rem;
    }
    
    .specs-section h5 {
        font-size: 1rem;
    }
    
    .specs-row {
        padding: 0.6rem 0;
    }
    
    .specs-label, .specs-value {
        font-size: 0.85rem;
    }
}

/* Animasyonlar */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.specs-details {
    animation: slideDown 0.3s ease-out;
} 