# Modern CSS stil dosyasını oluştur - style.css güncellemesi # TRT Haber tarzı modern görünüm css_code='''/* ==================== MODERN HABER SİTESİ STİLLERİ ==================== */

/* TRT Haber tarzı modern, temiz ve profesyonel tasarım */

:root {
    --primary: #c62828;
    --primary-dark: #b71c1c;
    --secondary: #1565c0;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== SON DAKİKA BANDI ==================== */
.breaking-band {
    background: linear-gradient(90deg, #c62828 0%, #d32f2f 100%);
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    z-index: 100;
}

.breaking-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.breaking-label {
    background: var(--white);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.breaking-label i {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.breaking-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.breaking-items {
    display: flex;
    gap: 40px;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.breaking-items:hover {
    animation-play-state: paused;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.breaking-item {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.95;
    transition: var(--transition);
    flex-shrink: 0;
}

.breaking-item:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ==================== MANŞET SLIDER (HERO) ==================== */
.hero-section {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Ana Manşet */
.hero-main {
    position: relative;
}

.hero-main-card {
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    height: 100%;
    min-height: 480px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.hero-main-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.hero-main-card:hover .hero-main-img img {
    transform: scale(1.05);
}

.hero-main-img {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-main-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.5) 40%,
            rgba(0, 0, 0, 0.1) 70%,
            transparent 100%);
}

.hero-main-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    color: var(--white);
    z-index: 2;
}

.hero-main-cat {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.hero-main-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-main-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-main-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    opacity: 0.7;
    align-items: center;
}

.hero-main-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

/* Yan Manşetler */
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-side-card {
    display: block;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    flex: 1;
    min-height: 150px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.hero-side-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-side-card:hover .hero-side-img img {
    transform: scale(1.05);
}

.hero-side-img {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-side-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            transparent 100%);
}

.hero-side-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: var(--white);
    z-index: 2;
}

.hero-side-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.hero-side-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-side-meta {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Alt Manşetler */
.hero-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hero-bottom-card {
    display: flex;
    gap: 15px;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    align-items: center;
    padding: 12px;
}

.hero-bottom-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-bottom-img {
    width: 120px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.hero-bottom-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-bottom-card:hover .hero-bottom-img img {
    transform: scale(1.1);
}

.hero-bottom-body {
    flex: 1;
    min-width: 0;
}

.hero-bottom-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.hero-bottom-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== SÜRMANŞET (ÖNE ÇIKANLAR) ==================== */
.surmanset-section {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.surmanset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.surmanset-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
    position: relative;
    padding-left: 16px;
}

.surmanset-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}

.surmanset-nav {
    display: flex;
    gap: 8px;
}

.sur-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--gray-light);
    background: var(--white);
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sur-nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.surmanset-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 10px;
}

.surmanset-scroll::-webkit-scrollbar {
    display: none;
}

.sur-card {
    flex: 0 0 280px;
    display: block;
    text-decoration: none;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.sur-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.sur-card:hover .sur-img img {
    transform: scale(1.08);
}

.sur-img {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.sur-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sur-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
}

.sur-body {
    padding: 16px;
}

.sur-cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.sur-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.sur-meta {
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==================== ANA LAYOUT ==================== */
.main-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
}

.main-content-area {
    min-width: 0;
}

.sidebar-area {
    min-width: 0;
}

/* ==================== MODERN BÖLÜM BAŞLIKLARI ==================== */
.content-section {
    margin-bottom: 50px;
}

.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-light);
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
}

.section-title-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
}

.section-more-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 20px;
}

.section-more-link:hover {
    background: rgba(198, 40, 40, 0.1);
    gap: 12px;
}

/* ==================== MODERN HABER KARTLARI ==================== */
.news-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.news-card-modern {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.news-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.news-card-modern:hover .news-card-img-wrap img {
    transform: scale(1.08);
}

.news-card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--white);
}

.card-badge.video {
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-badge.breaking {
    background: var(--primary);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(198, 40, 40, 0);
    }
}

.news-card-body-modern {
    padding: 18px;
}

.news-card-cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
}

.news-card-title-modern {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--dark);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-card-modern:hover .news-card-title-modern {
    color: var(--primary);
}

.news-card-meta-modern {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--gray);
}

.news-card-meta-modern span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==================== SPOR KARTLARI ==================== */
.spor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.spor-card-large {
    grid-column: 1 / -1;
}

.spor-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.spor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

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

.spor-card a {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.spor-card-large a {
    flex-direction: row;
}

.spor-card-small a {
    flex-direction: column;
}

.spor-img {
    overflow: hidden;
    flex-shrink: 0;
}

.spor-card-large .spor-img {
    width: 45%;
    min-height: 220px;
}

.spor-card-small .spor-img {
    width: 100%;
    height: 160px;
}

.spor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.spor-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spor-cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
}

.spor-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spor-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spor-meta {
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==================== RESPONSIVE TASARIM ==================== */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }

    .news-grid-modern {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-side {
        flex-direction: row;
    }

    .hero-side-card {
        min-height: 200px;
    }
}

@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-area {
        order: 2;
    }

    .news-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-main-title {
        font-size: 1.4rem;
    }

    .hero-bottom {
        grid-template-columns: repeat(2, 1fr);
    }

    .spor-grid {
        grid-template-columns: 1fr;
    }

    .spor-card-large a {
        flex-direction: column;
    }

    .spor-card-large .spor-img {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .breaking-inner {
        padding: 0 15px;
    }

    .breaking-label {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .hero-section {
        margin: 15px auto;
        padding: 0 15px;
    }

    .hero-main-card {
        min-height: 350px;
    }

    .hero-main-body {
        padding: 24px;
    }

    .hero-main-title {
        font-size: 1.2rem;
    }

    .hero-side {
        flex-direction: column;
    }

    .hero-bottom {
        grid-template-columns: 1fr;
    }

    .hero-bottom-card {
        flex-direction: row;
    }

    .news-grid-modern {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-card-img-wrap {
        height: 220px;
    }

    .sur-card {
        flex: 0 0 260px;
    }

    .section-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .main-layout {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-main-card {
        min-height: 300px;
    }

    .hero-main-title {
        font-size: 1.1rem;
    }

    .hero-main-desc {
        display: none;
    }

    .hero-main-meta {
        font-size: 0.75rem;
    }

    .sur-card {
        flex: 0 0 240px;
    }

    .section-title-text {
        font-size: 1.2rem;
    }
}

'''

# CSS dosyasını kaydet with open('/mnt/agents/output/style_modern.css', 'w', encoding='utf-8') as f: f.write(css_code) print("✅ style_modern.css oluşturuldu!") print(f"📄 Dosya boyutu: {len(css_code)} karakter")