/* --- GENEL AYARLAR --- */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Merriweather:wght@300;400;700&display=swap");

:root {
    --main-bg: hsla(204, 100%, 96%);
    --second-bg: hsla(204, 100%, 90%);
    --accent: hsla(196, 100%, 45%);
    --title: hsla(196, 100%, 15%);
    --text: hsla(196, 100%, 10%);
    --main-text: #065c59;
    --white: #ffffff;
    --up-color: #10b981;
    --down-color: #ef4444;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: var(--main-bg);
    color: var(--text);
    margin: 0;
}

/* --- LAYOUT --- */
.agenda-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    max-width: 100%;
    margin: 40px auto;
    padding: 0 20px;
}

/* --- HABER KARTLARI --- */
.featured-news {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    /* Tıklanabilir imleci */
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-news:hover .featured-img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.4) 60%,
        transparent 100%
    );
    color: white;
    z-index: 2;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    /* Tıklanabilir imleci */
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--second-bg);
}

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

.news-body {
    padding: 20px;
    flex-grow: 1;
}

.news-badge {
    background: var(--second-bg);
    color: var(--main-text);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.news-title {
    color: var(--title);
    font-size: 1.15rem;
    margin: 0 0 10px 0;
    font-weight: 700;
    line-height: 1.4;
}

/* --- FİNANS KUTUSU --- */
.finance-container {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--second-bg);
    position: sticky;
    top: 100px;
}

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

.currency-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--main-bg);
}

.currency-name {
    font-weight: 600;
    color: var(--title);
    font-size: 0.9rem;
}

.currency-price {
    font-family: "JetBrains Mono", monospace;
    font-weight: 800;
    color: var(--main-text);
}

.live-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--up-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--up-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Yanıp sönme efektleri */
.flash-up {
    animation: flash-g 1s;
    border-radius: 8px;
}

.flash-down {
    animation: flash-r 1s;
    border-radius: 8px;
}

@keyframes flash-g {
    0% {
        background: #dcfce7;
    }

    100% {
        background: transparent;
    }
}

@keyframes flash-r {
    0% {
        background: #fee2e2;
    }

    100% {
        background: transparent;
    }
}

/* --- MODAL (DETAY PENCERESİ) --- */
.modal-overlay {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: 24px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.modal-body {
    padding: 40px;
}

.modal-badge {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.modal-title {
    font-size: 2rem;
    color: var(--title);
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.modal-text {
    font-family: "Merriweather", serif;
    /* Okuma için daha iyi font */
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
}

.modal-text p {
    margin-bottom: 20px;
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.close-modal-btn:hover {
    background: white;
    transform: rotate(90deg);
}

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

    .modal-header-img {
        height: 200px;
    }

    .modal-title {
        font-size: 1.5rem;
    }
}
