/* 2D ROAD UI STYLES */

.road-container {
    position: relative;
    width: 100%;
    min-height: 800px;
    background-color: #2d3748; /* Asfalt Rengi */
    border-left: 15px solid #cbd5e1; /* Sol Kaldırım */
    border-right: 15px solid #cbd5e1; /* Sağ Kaldırım */
    padding: 3rem 1rem;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

/* Orta Kesik Çizgi */
.road-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    background: repeating-linear-gradient(
        to bottom,
        #facc15 0,
        #facc15 40px,
        transparent 40px,
        transparent 80px
    );
}

/* Şehrin En İyi Dükkanları Giriş Tabelası */
.main-street-sign {
    background: #1e3a8a;
    color: white;
    border: 4px solid #fff;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    width: 80%;
    max-width: 500px;
    margin: 0 auto 3rem auto;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Tabela Direkleri */
.main-street-sign::before, .main-street-sign::after {
    content: '';
    position: absolute;
    bottom: 100%;
    width: 10px;
    height: 50px;
    background: #94a3b8;
    z-index: -1;
}

.main-street-sign::before { left: 20%; }
.main-street-sign::after { right: 20%; }


/* Sokak Tabelası (Mavi Standart) */
.street-name-sign {
    background: #0284c7; /* Türkiye standart sokak tabelası mavisi */
    color: white;
    border: 2px solid white;
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Arial', sans-serif;
    text-align: center;
    width: fit-content;
    margin: 0 auto 3rem auto;
    position: relative;
    z-index: 10;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.2);
}


/* Yol Üstü İşletme Grid'i */
.road-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 5;
    max-width: 900px;
    margin: 0 auto;
}

/* Vitrin Görünümlü Kart */
.storefront-card {
    background: #fff;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    position: relative;
    transition: transform 0.3s ease;
    border-bottom: 5px solid #cbd5e1; /* Dükkan temeli */
    display: flex;
    flex-direction: column;
}

.storefront-card:hover {
    transform: scale(1.03);
}

/* Tente (Awning) Tasarımı */
.store-awning {
    height: 40px;
    background: repeating-linear-gradient(
        to right,
        #ef4444 0,
        #ef4444 30px,
        #fff 30px,
        #fff 60px
    );
    border-radius: 4px 4px 0 0;
    border-bottom: 4px solid #b91c1c;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.store-awning::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(
        to right,
        #b91c1c 0,
        #b91c1c 30px,
        #e2e8f0 30px,
        #e2e8f0 60px
    );
    border-radius: 0 0 50% 50%;
}

/* Vitrin Camı (Resim) */
.store-window {
    padding: 10px;
    background: #e2e8f0;
    position: relative;
}

.store-window img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 3px solid #cbd5e1;
    border-radius: 2px;
}

/* Tabela Yazısı (Dükkan Adı) */
.store-sign {
    background: #1e293b;
    color: #facc15;
    text-align: center;
    padding: 0.5rem;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border-bottom: 2px solid #0f172a;
}

.store-info {
    padding: 1rem;
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.store-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.store-rating {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.store-desc {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-door {
    margin-top: auto;
    text-align: center;
    background: #f1f5f9;
    padding: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.store-door .btn-details {
    background-color: #0f172a;
    color: white;
    padding: 0.4rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.store-door .btn-details:hover {
    background-color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .road-grid {
        grid-template-columns: 1fr;
    }
    .road-container::before {
        display: none; /* Mobilde çizgiyi gizle, dükkanlar alt alta dizilsin */
    }
}

/* 3D Road Styles - Düzeltilmiş Ölçekleme (Ana Sayfa ve Cadde Sayfası İçin) */
.city-map-container {
    margin-top: -3rem;
    padding-bottom: 8rem;
    background: linear-gradient(to bottom, #f8fafc, #e2e8f0);
}

.road-3d {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 1000px;
    background-color: #334155; 
    border-left: 30px solid #cbd5e1;
    border-right: 30px solid #cbd5e1;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8), 0 10px 30px rgba(0,0,0,0.1); 
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 8rem;
    gap: 6rem;
}

.road-3d::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 12px;
    background: repeating-linear-gradient(to bottom, #facc15 0, #facc15 80px, transparent 80px, transparent 160px);
}

/* Daha Gerçekçi 3D Tabela (Kategori) */
.category-sign-3d {
    background: linear-gradient(to bottom, #0ea5e9, #0284c7);
    color: white;
    padding: 2rem 4rem;
    font-size: 2.5rem;
    font-weight: 900;
    border: 6px solid #e2e8f0;
    border-radius: 12px;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.4),
        inset 0 0 20px rgba(0,0,0,0.2),
        inset 0 2px 0 rgba(255,255,255,0.5);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-sign-3d:hover {
    transform: scale(1.15) translateY(-20px);
    background: linear-gradient(to bottom, #38bdf8, #0ea5e9);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.3);
}

/* Çift Metal Direk */
.category-sign-3d::before, .category-sign-3d::after {
    content: '';
    position: absolute;
    top: 100%;
    width: 16px;
    height: 120px;
    background: linear-gradient(to right, #64748b, #94a3b8, #64748b);
    z-index: -1;
    box-shadow: 
        5px 10px 15px rgba(0,0,0,0.6),
        inset -2px 0 5px rgba(0,0,0,0.3);
}
.category-sign-3d::before { left: 15%; }
.category-sign-3d::after { right: 15%; }

/* Vida/Cıvata Detayları */
.category-sign-3d .bolts {
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    pointer-events: none;
}
.category-sign-3d .bolts::before, .category-sign-3d .bolts::after {
    content: ''; position: absolute; width: 12px; height: 12px; background: #cbd5e1; border-radius: 50%; box-shadow: inset 1px 1px 3px rgba(0,0,0,0.5);
}
.category-sign-3d .bolts::before { top: 0; left: 0; }
.category-sign-3d .bolts::after { top: 0; right: 0; }

/* Zigzag Dizilim için Sınıflar */
.sign-left { margin-right: 40%; }
.sign-right { margin-left: 40%; }

/* Mobile Responsiveness for 3D Road */
@media (max-width: 768px) {
    .road-3d {
        border-left: 10px solid #cbd5e1;
        border-right: 10px solid #cbd5e1;
        padding-top: 4rem;
        gap: 3rem;
    }
    
    .category-sign-3d {
        font-size: 1.2rem;
        padding: 1rem 1.5rem;
        width: 85%;
        text-align: center;
        margin: 0 !important;
    }

    .sign-left, .sign-right {
        margin: 0 !important;
    }
    
    .main-street-sign {
        font-size: 1.2rem;
        width: 90%;
        padding: 0.5rem 1rem;
        margin-bottom: 2rem;
    }
}
