﻿/* Sayfa başlık */
.nav-container {
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.username {
    font-size: 20px;
    color: #333;
    margin-bottom: 4px;
}

.title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 500;
    font-style: normal;
    line-height: 32px;
    letter-spacing: 0%;
    color: rgba(0, 0, 0, 1);
    margin: 4px 0 24px 0;
    width: 98px;
    height: 32px;
}

.nav-tabs-menu {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}
.nav-tabs{
    border-bottom: none;
}
.news-hr{
    border: 1px solid rgba(14, 15, 12, 0.12);
    margin: 0;
}

.nav-tab {
    font-family: 'Nacelle', sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 22px;
    letter-spacing: 1.25%;
    padding: 5px 16px;
    border-radius: 100px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    text-decoration: none !important;
    display: inline-block;
    margin-right: 7px;
}

.nav-tab.active {
    background-color: #ffffff;
    color: rgba(0, 0, 0, 1);
    font-weight: 400;
    border: 1px solid #000000;
    text-decoration: none !important;
}

.nav-tab:hover:not(.active) {
    background-color: #ffffff;
    color: rgba(0, 0, 0, 0.4);
    border-color: #e0e0e0;
    text-decoration: none;
}

/* Borsa Bilgileri */
.market-info-container {
    position: relative;
    width: 100%;
    margin-bottom: 27px;
}

.market-info {
    display: flex;
    gap: 16px;
    width: 100%;
    border-top: 1px solid rgba(14, 15, 12, 0.12);
    border-bottom: 1px solid rgba(14, 15, 12, 0.12);
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.market-info::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.market-info-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.market-prev-btn,
.market-next-btn {
    width: 24px;
    height: 60px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    pointer-events: auto;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.market-prev-btn:hover,
.market-next-btn:hover {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.market-prev-btn:disabled,
.market-next-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.market-prev-btn:disabled:hover,
.market-next-btn:disabled:hover {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: none;
}

.market-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    min-width: 188px;
    position: relative;
    height: 80px;
}

.market-widget:last-child {
    border-right: none;
}


.market-title {
    font-family: 'Nacelle', sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 26px;
    letter-spacing: 0%;
    color: rgba(0, 0, 0, 1);
    margin-bottom: 4px;
    white-space: nowrap;
    text-align: center;
}

.market-value {
    font-family: 'Nacelle', sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 70%;
    letter-spacing: 0%;
    color: rgba(0, 0, 0, 1);
    margin-bottom: 2px;
    white-space: nowrap;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.market-value svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.market-change {
    font-size: 11px;
    font-weight: 400;
    margin-bottom: 4px;
    white-space: nowrap;
    text-align: center;
}

.market-direction {
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    top: 8px;
    right: 8px;
}

.market-widget.positive .market-value,
.market-widget.positive .market-change,
.market-widget.positive .market-direction {
    color: #10b981;
}

.market-widget.negative .market-value,
.market-widget.negative .market-change,
.market-widget.negative .market-direction {
    color: #ef4444;
}

.page-section {
    margin-bottom: 48px;
}

.section-header {
    margin-bottom: 24px;
}

.section-header-texts {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.section-description {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.news-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-item {
    display: flex;
    flex-direction: row;
    border-radius: 8px;
    overflow: hidden;
    gap: 24px;
    text-decoration: none;
    background: #ffffff;
    padding: 0;
    border: none;
}

.news-item:hover {
    color: unset;
    text-decoration: none;
}

.news-image {
    width: 259px;
    height: 154px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    flex: 1;
}

.news-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 146%;
    letter-spacing: 0%;
    color: rgba(0, 0, 0, 1);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    hyphens: auto;
    margin: 0 0 8px 0;
}

.news-description {
    font-family: 'Nacelle', sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 150%;
    letter-spacing: 0%;
    color: rgba(125, 131, 152, 1);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin: 0 0 8px 0;
}

.tag-container {
    display: flex;
    gap: 8px;
    margin: 0;
    flex-wrap: wrap;
}

.fund-tag {
    border: 0.5px solid #b7b7b7;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 18px;
    background: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s;
}

.fund-tag:hover {
    background: #e9ecef;
    text-decoration: none;
}

.fund-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fund-icon img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.fund-code {
    font-size: 12px;
    color: #1a1a1a;
    font-weight: 500;
}

.news-time {
    font-family: 'Nacelle', sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 146%;
    letter-spacing: 0%;
    color: rgba(0, 0, 0, 0.54);
    margin: 0;
}

/* Liste Görünümü */
.news-list-item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}

.news-list-item:hover {
    background-color: #f9f9f9;
    text-decoration: none;
    color: inherit;
}

.news-list-image {
    width: 240px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.news-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: 160px; /* Görsel yüksekliği kadar */
    overflow: hidden;
}

.news-content-top {
    flex: 1;
    overflow: hidden;
}

.news-list-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.news-list-description {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Responsive */
@media (max-width: 1200px) {
    .news-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .market-info {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .news-content {
        padding: 12px 12px 12px 12px;
    }
    .news-wrapper {
        gap: 16px;
    }
    .news-item {
        flex-direction: column;
        gap: 16px;
    }
    .news-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
    .news-list-item {
        flex-direction: column;
    }
    .news-list-image {
        width: 100%;
        height: auto;
    }
    .news-list-content {
        max-height: none;
    }
    .market-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hover-with-opacity:hover {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
