/* Index Page Styles */

/* Tab Styling for Search - Fixed visibility for inactive tabs */
.nav-pills .nav-link {
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    background: #f8f9fa !important; /* Açık gri arka plan - aktif olmayan için */
    color: #495057 !important; /* Koyu metin rengi */
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin: 0 0.25rem;
}

.nav-pills .nav-link:not(.active) {
    background: #f8f9fa !important; /* Açık gri arka plan */
    border-color: #dee2e6 !important;
    color: #6c757d !important; /* Daha koyu gri metin */
}

.nav-pills .nav-link:not(.active):hover {
    background: #e9ecef !important; /* Hover'da daha koyu gri */
    border-color: #667eea !important;
    color: #667eea !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-color: #667eea !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.nav-pills .nav-link small {
    font-size: 0.75rem;
    opacity: 0.9;
    display: block;
    margin-top: 0.25rem;
}

.nav-pills .nav-link:not(.active) small {
    opacity: 0.7; /* İnaktif tab'larda small text daha soluk */
}

.nav-pills .nav-link i {
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

/* Enhanced Tool Cards Styling */
.tool-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.tool-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #667eea);
    border-radius: 1.5rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover .tool-icon::after {
    opacity: 0.3;
}

.tool-icon i {
    font-size: 2rem;
    color: white;
    z-index: 2;
}

.tool-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.tool-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.tool-description {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.tool-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    flex: 1;
}

.tool-features li {
    padding: 0.75rem 0;
    color: #4a5568;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    transition: all 0.2s ease;
}

.tool-features li:hover {
    color: #667eea;
    transform: translateX(5px);
}

.tool-features li i {
    margin-right: 0.75rem;
    font-size: 1rem;
}

.tool-card .btn {
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.tool-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

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

.tool-card .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tool-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.tool-card .btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #007bff 100%);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.tool-card .btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.4);
}

.tool-card .btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.tool-card .btn-warning:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

/* Hero CTA responsive improvements */
.hero-cta {
    margin: 2rem 0;
}

.hero-cta .btn {
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-cta .btn i {
    font-size: 1.1rem;
}

/* Mobile responsive styling */
@media (max-width: 575.98px) {
    .hero-cta .btn {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
        width: 100%;
    }
    
    .hero-cta .gap-3 {
        gap: 0.75rem !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-cta .btn {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .hero-cta .flex-fill {
        flex: 0 1 auto;
        max-width: 200px;
    }
}

/* School card image styles - liseler.php'den kopyalandı */
.school-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.school-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.school-card:hover .school-card-image img {
    transform: scale(1.05);
}

.school-card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 50%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
}

.school-type-badge {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.obp-badge {
    background: rgba(5,150,105,0.95);
    color: white;
}

/* New City Cards Design */
.city-card-new {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f3f4;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.city-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.city-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.city-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    backdrop-filter: blur(10px);
}

.city-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.city-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.city-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.city-section:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 1rem;
}

.section-link:hover {
    color: inherit;
}

.section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.section-link:hover .section-title {
    color: #667eea;
}

.section-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.8rem;
    color:rgb(255, 255, 255);
    font-weight: 500;
    line-height: 1.2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .city-header {
        padding: 1.25rem;
        gap: 0.5rem;
    }
    
    .city-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .city-name {
        font-size: 1.1rem;
    }
    
    .city-body {
        padding: 1.25rem;
        gap: 1.25rem;
    }
    
    .city-section {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .city-header {
        padding: 1rem;
    }
    
    .city-body {
        padding: 1rem;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 0.85rem;
    }
    
    .stat-number {
        font-size: 1.35rem;
    }
}
