/* Modern Haber Sitesi - Ana Stil Dosyası */
/* ========================================= */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f9fafb;
    color: var(--text-primary, #333);
}

/* Breaking News */
.breaking-news {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 12px 0;
    position: sticky;
    top: 60px;
    z-index: 100;
}

.breaking-label {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.breaking-ticker {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scrollbar-width: none;
}

.breaking-ticker::-webkit-scrollbar {
    display: none;
}

.breaking-item {
    color: white;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.breaking-item:hover {
    opacity: 0.8;
    color: white;
}

/* Hero Section */
.hero-section {
    padding: 40px 0;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

/* Main News Container */
.main-news-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    height: 100%;
}

.featured-image {
    position: relative;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-news:hover .featured-image img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.featured-category {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.featured-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s;
}

.featured-link {
    text-decoration: none;
    color: inherit;
}

.featured-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.featured-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Related News */
.related-news-section {
    padding-top: 20px;
}

.related-news-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.related-news-item:last-child {
    border-bottom: none;
}

.related-news-item:hover {
    background: #f9fafb;
    border-radius: 10px;
    padding: 15px;
    margin: 0 -15px;
}

.related-news-image {
    position: relative;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.related-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-news-item:hover .related-news-image img {
    transform: scale(1.1);
}

.related-news-category {
    position: absolute;
    bottom: 4px;
    left: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    color: white;
}

.related-news-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-news-title a {
    text-decoration: none;
    transition: color 0.3s;
}

.related-news-excerpt {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.related-news-meta {
    font-size: 0.7rem;
    display: flex;
    gap: 15px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

/* Popular News */
.popular-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.popular-item:hover {
    background: #f9fafb;
    margin: 0 -10px;
    padding: 10px;
    padding-bottom: 15px;
    border-radius: 8px;
}

.popular-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Popüler sıralama numaraları */
.popular-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    color: white;
}

/* İlk 3 sıra özel renkler */
.popular-item:nth-child(1) .popular-rank {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.popular-item:nth-child(2) .popular-rank {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.popular-item:nth-child(3) .popular-rank {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

.popular-content {
    flex: 1;
}

.popular-title {
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.popular-meta {
    font-size: 0.75rem;
    display: flex;
    gap: 10px;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.category-item {
    background: white;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
    transform: translateX(-4px);
    transition: transform 0.3s ease;
}

.category-item:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: currentColor;
}

.category-item:hover::before {
    transform: translateX(0);
}

.category-item:hover i {
    transform: scale(1.3) rotate(5deg);
}

.category-item i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.category-item span {
    font-weight: 500;
    flex: 1;
}

.category-item small {
    opacity: 0.6;
    font-size: 0.75rem;
    font-weight: 600;
}

/* News Grid Section */
.news-grid-section {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Compact News Cards */
.news-card.compact {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
}

.news-card.compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.news-card.compact .news-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.news-card.compact .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card.compact:hover .news-image img {
    transform: scale(1.1);
}

.news-card.compact .news-category {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
}

.news-card.compact .news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card.compact .news-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card.compact .news-title a {
    text-decoration: none;
    transition: color 0.3s;
}

.news-card.compact .news-excerpt {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
}

.news-card.compact .news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

/* Crypto Widget */
.crypto-widget-standalone {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    padding: 25px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.crypto-widget-standalone .widget-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.crypto-widget-standalone .widget-title i {
    color: #f59e0b;
    margin-right: 10px;
}

.live-badge {
    background: #ef4444;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.crypto-list-compact {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 5px;
}

.crypto-list-compact::-webkit-scrollbar {
    width: 5px;
}

.crypto-list-compact::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

.crypto-list-compact::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 5px;
}

.crypto-item-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.08);
}

.crypto-item-compact:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
    border-color: rgba(255,255,255,0.2);
}

.crypto-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.crypto-icon-sm {
    width: 28px;
    height: 28px;
}

.crypto-name-compact {
    display: flex;
    flex-direction: column;
}

.crypto-name-compact strong {
    color: white;
    font-size: 0.9rem;
    line-height: 1.2;
}

.crypto-name-compact small {
    color: rgba(255,255,255,0.7);
    font-size: 0.7rem;
}

.crypto-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.price-compact {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.change-compact {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.change-compact.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.change-compact.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.crypto-footer-compact {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.btn-kripto {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
}

.update-text {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary, #667eea), var(--primary-dark, #764ba2));
    padding: 80px 0;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.newsletter-section::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.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.newsletter-box {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.newsletter-title i {
    color: var(--primary, #667eea);
    margin-right: 10px;
}

.newsletter-text {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.newsletter-input-group {
    display: flex;
    gap: 0;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 5px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.newsletter-input {
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 1rem;
    flex: 1;
    min-width: 0;
}

.newsletter-input:focus {
    outline: none;
    box-shadow: none;
}

.btn-newsletter {
    background: linear-gradient(135deg, var(--primary, #667eea), var(--primary-dark, #764ba2));
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    color: white;
}

.btn-newsletter:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* Responsive Design */
@media (max-width: 991px) {
    .featured-image {
        height: 300px;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .crypto-widget-standalone {
        margin-top: 30px;
    }
    
    .newsletter-box {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .section-header {
        text-align: center;
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .news-card.compact .news-image {
        height: 160px;
    }
    
    .newsletter-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .newsletter-text {
        font-size: 1rem;
        text-align: center;
    }
    
    .newsletter-box {
        padding: 30px 20px;
    }
    
    .btn-newsletter .btn-text {
        display: none;
    }
    
    .btn-newsletter {
        padding: 12px 20px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 20px 0;
    }
    
    .main-news-container {
        padding: 15px;
    }
    
    .featured-image {
        height: 200px;
    }
    
    .featured-title {
        font-size: 1.2rem;
    }
    
    .featured-excerpt {
        font-size: 0.9rem;
    }
    
    .related-news-title {
        font-size: 0.85rem;
    }
    
    .news-card.compact .news-content {
        padding: 15px;
    }
    
    .news-card.compact .news-title {
        font-size: 0.9rem;
    }
    
    .newsletter-section {
        padding: 50px 0;
    }
    
    .newsletter-title {
        font-size: 1.3rem;
    }
    
    .newsletter-text {
        font-size: 0.9rem;
    }
    
    .crypto-widget-standalone {
        padding: 20px;
    }
    
    .crypto-list-compact {
        max-height: 350px;
    }
    
    .breaking-news {
        top: 50px;
    }
}