/**
 * Otobüs TV - Ana Stil Dosyası
 * Bootstrap 5 ile uyumlu özel stiller
 */

/* Genel Stiller */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #6c757d;
    --accent-color: #dc3545;
    --success-color: #198754;
    --warning-color: #fd7e14;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --text-color: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --black: #000000;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

/* Top Bar */
.top-bar {
    font-size: 0.875rem;
}

.top-bar .social-links a {
    transition: color 0.3s ease;
}

.top-bar .social-links a:hover {
    color: var(--primary-color) !important;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem !important;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
    left: 10%;
}

/* Dropdown Menu Improvements */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-item:hover {
    background: var(--accent-color);
    color: white;
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Search Form */
.search-form {
    min-width: 250px;
}

.search-input {
    border-radius: 25px 0 0 25px;
    border-right: none;
}

.search-btn {
    border-radius: 0 25px 25px 0;
    border-left: none;
}

.search-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
    border-color: var(--accent-color);
}

/* Mobile Navigation */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

.navbar-toggler:hover {
    background: rgba(44, 62, 80, 0.1);
}

.mobile-search-toggle {
    border-radius: 8px;
}

.mobile-search-form {
    background: var(--bg-light);
    animation: slideDown 0.3s ease;
}

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

/* Mobile Menu Styles */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
        background: white;
        border-radius: 10px;
        margin-top: 1rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem 1.5rem !important;
        border-bottom: 1px solid #f8f9fa;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:active {
        background: var(--bg-light);
        color: var(--accent-color) !important;
        transform: none;
        padding-left: 2rem !important;
    }
    
    .navbar-nav .nav-link.active {
        background: var(--accent-color);
        color: white !important;
        font-weight: 600;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .dropdown-menu {
        box-shadow: none;
        border: none;
        background: var(--bg-light);
        margin: 0;
        border-radius: 0;
        padding-left: 1rem;
        animation: slideDown 0.3s ease;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        color: var(--text-muted);
        border-radius: 5px;
        margin: 2px 0;
    }
    
    .dropdown-item:hover,
    .dropdown-item:active {
        background: white;
        color: var(--accent-color);
        transform: none;
        padding-left: 1.5rem;
    }
    
    .search-form {
        display: none !important;
    }
    
    .mobile-search-form {
        display: block !important;
    }
    
    /* Mobile specific improvements */
    .hero-slider {
        height: 250px;
    }
    
    .content-card {
        margin-bottom: 1rem;
    }
    
    .content-card img {
        height: 150px;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .weather-widget {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .weather-widget .temperature {
        font-size: 2rem;
    }
}

/* Pull to Refresh */
.pull-to-refresh {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 0 0 15px 15px;
    font-size: 0.9rem;
    z-index: 1000;
    transition: top 0.3s ease;
}

.pull-to-refresh.show {
    top: 0;
}

.pull-to-refresh i {
    animation: spin 1s linear infinite;
}

/* Offline Indicator */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ff6b6b;
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 0.9rem;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.offline-indicator.show {
    transform: translateY(0);
}

/* Touch Feedback */
@media (max-width: 991.98px) {
    .btn:active,
    .nav-link:active,
    .dropdown-item:active,
    .content-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Smooth scrolling for mobile */
@media (max-width: 991.98px) {
    html {
        scroll-behavior: smooth;
    }
    
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* Mobile-first responsive images */
@media (max-width: 576px) {
    .hero-slider {
        height: 200px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .content-card img {
        height: 120px;
    }
    
    .stats-card .stats-number {
        font-size: 1.5rem;
    }
    
    .weather-widget .temperature {
        font-size: 1.75rem;
    }
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-slide {
    position: relative;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Weather Widget */
.weather-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.2);
}

.weather-widget .weather-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.weather-widget .temperature {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.weather-widget .city {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.content-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.content-card .card-body {
    padding: 1.5rem;
}

.content-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.content-card .card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-card .card-title a:hover {
    color: var(--accent-color);
}

.content-card .card-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.content-card .card-meta {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
}

.category-badge:hover {
    background: #c0392b;
    color: white;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Popular Tags */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud a {
    background: #f8f9fa;
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tag-cloud a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Comments */
.comment-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.comment-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.comment-date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.75rem;
}

.comment-text {
    color: #555;
    line-height: 1.6;
}

/* Forms */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

/* Back to Top Button */
.btn-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.btn-floating:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .weather-widget {
        margin-bottom: 2rem;
    }
    
    .content-card img {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 300px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .weather-widget .temperature {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    color: var(--primary-color);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Breadcrumb */
.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

/* Social Share Buttons */
.social-share {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-share a:hover {
    transform: scale(1.1);
}

.social-share .facebook { background: #3b5998; }
.social-share .twitter { background: #1da1f2; }
.social-share .whatsapp { background: #25d366; }
.social-share .linkedin { background: #0077b5; }

/* Search Results */
.search-result {
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}

.search-result:last-child {
    border-bottom: none;
}

.search-result h5 a {
    color: var(--primary-color);
    text-decoration: none;
}

.search-result h5 a:hover {
    text-decoration: underline;
}

.search-result .search-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Error Pages */
.error-page {
    text-align: center;
    padding: 5rem 0;
}

.error-page .error-code {
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-page h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Admin Panel Styles */
.admin-sidebar {
    background: #343a40;
    min-height: 100vh;
    padding: 1rem 0;
}

.admin-sidebar .nav-link {
    color: #adb5bd;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
}

.admin-content {
    padding: 2rem;
}

.stats-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.stats-card .stats-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stats-card .stats-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-card .stats-label {
    color: #666;
    font-size: 0.9rem;
}

/* Utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Anasayfa Özel Stiller */
.stats-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: center;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.stats-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.stats-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Route Cards */
.route-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.route-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.route-header h5 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.route-info {
    margin-bottom: 1rem;
}

.route-price {
    font-weight: 600;
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.route-duration {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.section-header h2 i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

/* Content Meta */
.content-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.content-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

/* Rating Stars */
.rating-stars {
    font-size: 0.8rem;
}

.rating-stars .fa-star {
    margin-right: 1px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .route-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .stats-card {
        padding: 1.5rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .route-card {
        padding: 1rem;
    }
    
    .content-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
