/* MyFatsa - Genel Stil Dosyası */

/* Genel Stiller */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    color: #dc3545;
    text-decoration: none;
}

a:hover {
    color: #c82333;
    text-decoration: underline;
}

.section-title {
    border-left: 4px solid #dc3545;
    padding-left: 10px;
    margin-bottom: 20px;
}

/* Üst Bilgi Çubuğu */
.finances-ticker {
    font-size: 0.85rem;
    overflow-x: auto;
    white-space: nowrap;
}

.finance-item {
    display: inline-block;
}

.finance-title {
    color: #6c757d;
    font-weight: 600;
    margin-right: 5px;
}

.finance-value {
    font-weight: 600;
}

.finance-change {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 2px;
}

.finance-change.up {
    color: #28a745;
}

.finance-change.down {
    color: #dc3545;
}

/* Logo */
.logo h1 {
    margin-bottom: 0;
    font-size: 1.8rem;
}

/* Navbar */
.navbar {
    padding: 0;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
}

.navbar-nav .nav-link.active {
    color: #dc3545;
    border-bottom: 2px solid #dc3545;
}

/* Carousel */
.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    padding: 15px;
    bottom: 20px;
}

.carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Carousel Resim Ayarları */
.carousel-item {
    height: 400px;
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Kartlar */
.card {
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    height: auto;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.card-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem;
}

.card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 4.5em;
    line-height: 1.5;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.news-link {
    text-decoration: none;
    color: inherit;
}

.news-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Son Dakika ve En Çok Okunanlar */
.card-header {
    background-color: #dc3545;
    color: white;
    font-weight: 600;
}

.badge.rounded-circle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
footer {
    background-color: #343a40;
    color: white;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
}

/* Hava Durumu Widget */
.weather-info {
    font-size: 0.9rem;
}

/* Hava Durumu Stili */
#weather-container, #weatherWidget {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.forecast-day-item {
    text-align: center;
    width: calc(25% - 8px);
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 8px 4px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.day-name {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
}

.temp {
    font-size: 14px;
    font-weight: bold;
}

/* Duyarlı Tasarım */
@media (max-width: 992px) {
    .navbar-nav .nav-link.active {
        border-bottom: none;
    }
    
    .carousel-caption {
        padding: 10px;
    }
    
    .carousel-caption h5 {
        font-size: 1.2rem;
    }
    
    .carousel-item {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .finances-ticker {
        overflow-x: auto;
    }
    
    .logo h1 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .section-title h4 {
        font-size: 1.2rem;
    }
    
    .carousel-item {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .finances-ticker {
        font-size: 0.75rem;
    }
    
    .carousel-caption {
        position: relative;
        background: #f8f9fa;
        color: #333;
        padding: 10px;
    }
    
    .carousel-caption h5 {
        color: #000;
    }
    
    .carousel-caption p {
        color: #333;
    }
    
    .card-img-top {
        height: 160px;
    }
    
    .carousel-item {
        height: 250px;
    }
    
    .forecast-day-item {
        width: calc(50% - 8px);
        margin-bottom: 8px;
    }
}

/* Reklam Alanları */
.navbar-bottom-ad, .sidebar-ad, .bottom-ad {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-bottom-ad img, .sidebar-ad img, .bottom-ad img {
    width: 100%;
    transition: transform 0.3s ease;
}

.navbar-bottom-ad:hover img, .sidebar-ad:hover img, .bottom-ad:hover img {
    transform: scale(1.02);
}

.navbar-bottom-ad small, .sidebar-ad small, .bottom-ad small {
    display: block;
    padding: 4px;
    background-color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

/* En Çok Okunanlar Bölümü Stilleri */
.popular-news-item .text-primary {
    display: inline-block !important;
    margin-top: 5px;
    font-size: 12px;
}

.popular-news-item .text-truncate {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.popular-news-item .col-8 {
    display: flex;
    flex-direction: column;
}

.popular-news-item .row {
    width: 100%;
}

.list-group-item .badge.rounded-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
}

/* Yorumları düzgün gösterme ayarları */
.fa-comments {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* Güçlü yerleşim kuralları */
.card-body p-0 {
    padding: 0 !important;
}

.popular-news-item {
    display: block;
    width: 100%;
} 