/* Extracted from vulytsi.php */

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animated elements */
.animate-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Page Styles */
.streets-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding-bottom: 60px;
}

.streets-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #1e3a5f 100%);
    color: #fff;
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animated background particles */
.streets-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.streets-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.streets-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

.streets-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    animation: fadeInScale 0.5s ease-out forwards;
    opacity: 0;
}
.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #10b981;
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumbs a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: #6b7280;
    margin: 0 8px;
}

/* Search & Filters */
.search-section {
    background: #fff;
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.search-box {
    max-width: 600px;
    margin: 0 auto 20px;
    position: relative;
}

.search-box input {
    color: #1e293b;
    width: 100%;
    padding: 16px 20px 16px 50px;
    font-size: 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-box::before {
    content: '◎';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #6b7280;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-tab {
    padding: 10px 20px;
    background: #f3f4f6;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #374151;
    position: relative;
    overflow: hidden;
}

.filter-tab::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.filter-tab:hover::after {
    width: 150px;
    height: 150px;
}

.filter-tab:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.filter-tab.active {
    background: linear-gradient(135deg, #1e3a5f, #2d5a87);
    color: #fff;
    animation: pulse 2s ease-in-out infinite;
}

.filter-tab .count {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 5px;
    font-size: 12px;
}

/* Alphabet Filter */
.alphabet-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 15px;
}

.letter-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    color: #374151;
}

.letter-btn:hover {
    background: #e5e7eb;
    transform: scale(1.1);
}

.letter-btn.active {
    background: #10b981;
    color: #fff;
}

.letter-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Streets Grid */
.streets-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.streets-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.section-letter {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a5f, #2d5a87);
    color: #fff;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 700;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
}

.section-count {
    color: #6b7280;
    font-size: 0.9rem;
}

.streets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.street-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.4s ease-out forwards;
}

/* Staggered animation for cards */
.street-card:nth-child(1) { animation-delay: 0.02s; }
.street-card:nth-child(2) { animation-delay: 0.04s; }
.street-card:nth-child(3) { animation-delay: 0.06s; }
.street-card:nth-child(4) { animation-delay: 0.08s; }
.street-card:nth-child(5) { animation-delay: 0.1s; }
.street-card:nth-child(6) { animation-delay: 0.12s; }
.street-card:nth-child(7) { animation-delay: 0.14s; }
.street-card:nth-child(8) { animation-delay: 0.16s; }
.street-card:nth-child(9) { animation-delay: 0.18s; }
.street-card:nth-child(10) { animation-delay: 0.2s; }
.street-card:nth-child(n+11) { animation-delay: 0.22s; }

/* Shimmer effect on hover */
.street-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}

.street-card:hover::before {
    left: 100%;
}

.street-card:hover {
    transform: translateY(-5px) translateX(5px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
    text-decoration: none;
    color: #1e293b;
}

.street-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border-radius: 10px;
    font-size: 18px;
    flex-shrink: 0;
}

.street-card.provulok .street-icon { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.street-card.prospekt .street-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.street-card.bulvar .street-icon { background: linear-gradient(135deg, #ec4899, #db2777); }
.street-card.ploshcha .street-icon { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.street-card.aleia .street-icon { background: linear-gradient(135deg, #84cc16, #65a30d); }
.street-card.shose .street-icon { background: linear-gradient(135deg, #ef4444, #dc2626); }

.street-info {
    flex: 1;
    min-width: 0;
}

.street-name {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.street-type {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.street-coverage {
    padding: 4px 10px;
    background: #d1fae5;
    color: #047857;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Results Info */
.results-info {
    text-align: center;
    padding: 20px;
    color: #6b7280;
    font-size: 14px;
}

.results-info strong {
    color: #1e293b;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-results-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 10px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    margin-top: 40px;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.cta-btn {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    color: #fff;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .streets-hero h1 {
        font-size: 1.8rem;
    }
    
    .stats-row {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .search-box input {
    color: #1e293b;
        font-size: 16px;
        padding: 14px 18px 14px 45px;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-tab {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .streets-grid {
        grid-template-columns: 1fr;
    }
    
    .alphabet-filter {
        gap: 4px;
    }
    
    .letter-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}
