.story-section {
    padding: 22px 0 18px;
    border-bottom: 1px solid rgba(236, 231, 250, .75);
}

.story-track {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    overflow-x: auto;
    padding: 2px 1px 8px;
    scrollbar-width: none;
}

.story-track::-webkit-scrollbar {
    display: none;
}

.story-item {
    flex: 0 0 auto;
    width: 88px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
}

.story-circle {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 8px;
    border-radius: 50%;
    padding: 3px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(
            135deg,
            #ff5f9e 0%,
            #b95cff 42%,
            var(--primary) 72%,
            #7c54ff 100%
        ) border-box;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-circle::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 2px solid #fff;
    border-radius: 50%;
    pointer-events: none;
}

.story-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.story-all {
    background:
        linear-gradient(#faf8ff, #faf8ff) padding-box,
        linear-gradient(135deg, #d9cdfd, #eee9fb) border-box;
    color: var(--primary);
    font-size: 17px;
}

.story-item strong {
    display: block;
    overflow: hidden;
    color: var(--title);
    font-size: 11px;
    line-height: 1.25;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-meta {
    min-height: 18px;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1;
    font-weight: 400;
}

.story-eye {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    color: var(--primary);
}

.story-modal-open {
    overflow: hidden;
}

.story-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.story-modal.is-open {
    display: flex;
}

.story-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 14, 28, .58);
    backdrop-filter: blur(5px);
}

.story-modal-card {
    position: relative;
    z-index: 2;
    width: min(420px, 100%);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 26px 80px rgba(18, 14, 28, .20);
}

.story-modal-close {
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 3;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(17, 14, 25, .34);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.story-modal-media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--primary-soft);
}

.story-modal-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.story-modal-body {
    padding: 20px 20px 22px;
}

.story-modal-meta {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.story-modal-label {
    color: var(--primary);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.story-modal-views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 10px;
}

.story-modal-body h2 {
    margin: 0;
    color: var(--title);
    font-size: 21px;
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: -.025em;
}

.story-modal-link {
    min-height: 40px;
    margin-top: 18px;
    padding: 0 14px;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.story-modal-link:hover {
    background: var(--primary-dark);
}

.story-modal-link span {
    font-size: 15px;
}

.home-hero {
    padding: 18px 0 34px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, .75fr);
    gap: 20px;
}

.hero-main-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
    min-height: 430px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #fff;
}

.hero-main-content {
    padding: 42px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-label {
    width: fit-content;
    margin-bottom: 18px;
    padding: 7px 11px;
    border-radius: 7px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 550;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero-category {
    color: var(--primary);
    font-size: 12px;
    font-weight: 550;
    text-transform: uppercase;
}

.hero-main-content h1 {
    margin: 12px 0 15px;
    color: var(--title);
    font-size: 31px;
    line-height: 1.15;
    font-weight: 550;
    letter-spacing: -.035em;
}

.hero-main-content h1 a {
    color: var(--title);
    text-decoration: none;
}

.hero-main-content h1 a:hover {
    color: var(--primary);
}

.hero-main-content p {
    max-width: 520px;
    margin: 0 0 18px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 11px;
}

.hero-meta span:not(:last-child)::after {
    content: "•";
    margin-left: 10px;
    color: var(--border);
}

.hero-read-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--title);
    font-size: 13px;
    font-weight: 550;
    text-decoration: none;
}

.hero-read-link span {
    color: var(--primary);
    font-size: 17px;
    transition: transform .2s ease;
}

.hero-read-link:hover {
    color: var(--primary);
}

.hero-read-link:hover span {
    transform: translateX(4px);
}

.hero-main-image {
    position: relative;
    display: block;
    min-height: 430px;
    overflow: hidden;
    background: var(--primary-soft);
}

.hero-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.hero-main-card:hover .hero-main-image img {
    transform: scale(1.025);
}

.hero-side {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
}

.hero-mini-card {
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 205px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    transition: transform .2s ease, border-color .2s ease;
}

.hero-mini-card:hover {
    transform: translateY(-3px);
    border-color: rgba(138, 80, 252, .35);
}

.hero-mini-image {
    display: block;
    min-height: 100%;
    overflow: hidden;
    background: var(--primary-soft);
}

.hero-mini-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.hero-mini-card:hover .hero-mini-image img {
    transform: scale(1.035);
}

.hero-mini-content {
    padding: 24px 21px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-mini-content > span {
    color: var(--primary);
    font-size: 10px;
    font-weight: 550;
    text-transform: uppercase;
}

.hero-mini-content h2 {
    margin: 10px 0 14px;
    color: var(--title);
    font-size: 17px;
    line-height: 1.25;
    font-weight: 550;
    letter-spacing: -.02em;
}

.hero-mini-content h2 a {
    color: var(--title);
    text-decoration: none;
}

.hero-mini-content h2 a:hover {
    color: var(--primary);
}

.hero-mini-content small {
    color: var(--muted);
    font-size: 11px;
}

.fallback-hero-image {
    background:
        radial-gradient(circle at 30% 30%, rgba(138, 80, 252, .22), transparent 30%),
        linear-gradient(135deg, #f8f4ff 0%, #eee4ff 100%);
}

.fallback-mini-image {
    background:
        radial-gradient(circle at 60% 30%, rgba(138, 80, 252, .20), transparent 34%),
        linear-gradient(135deg, #faf8ff 0%, #efe8ff 100%);
}

.popular-section {
    padding: 24px 0 34px;
}

.popular-track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.popular-item {
    position: relative;
    min-width: 0;
    min-height: 155px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.popular-item:hover {
    transform: translateY(-3px);
    border-color: rgba(138, 80, 252, .35);
    box-shadow: 0 12px 30px rgba(25, 18, 45, .05);
}


/* Görselsiz "Çok Okunanlar" kartları için dekoratif vurgu */
.popular-item:not(:has(.popular-image))::before {
    content: "M";
    position: absolute;
    top: 15px;
    right: 18px;
    z-index: 0;
    color: rgba(138, 80, 252, .07);
    font-size: 54px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: -.06em;
    pointer-events: none;
}

.popular-item:not(:has(.popular-image))::after {
    content: "";
    position: absolute;
    top: -22px;
    right: -20px;
    width: 118px;
    height: 118px;
    z-index: 0;
    border-radius: 38% 62% 52% 48% / 44% 38% 62% 56%;
    background:
        radial-gradient(
            circle at 40% 40%,
            rgba(138, 80, 252, .13) 0%,
            rgba(138, 80, 252, .07) 40%,
            rgba(138, 80, 252, .025) 66%,
            transparent 78%
        );
    transform: rotate(18deg);
    pointer-events: none;
}

.popular-item:not(:has(.popular-image)) .popular-number,
.popular-item:not(:has(.popular-image)) .popular-content {
    position: relative;
    z-index: 2;
}

.popular-number {
    margin-bottom: 26px;
    color: var(--primary);
    font-size: 28px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: -.04em;
}

.popular-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
}

.popular-content h3 {
    max-width: 190px;
    margin: 0 0 9px;
    color: var(--title);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 550;
    letter-spacing: -.015em;
}

.popular-content small {
    color: var(--muted);
    font-size: 11px;
}

.popular-image {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    overflow: hidden;
}

.popular-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.popular-item:has(.popular-image) .popular-number {
    padding-right: 65px;
}

.popular-item:has(.popular-image) .popular-content h3 {
    max-width: 170px;
}

.home-category-section {
    padding: 24px 0 24px;
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.home-category-card {
    height: 245px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--primary-soft);
    position: relative;
    transition: transform .2s ease, border-color .2s ease;
}

.home-category-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.home-category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 20%, rgba(17, 16, 22, .86) 100%);
}

.home-category-card-body {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px;
    color: #fff;
}

.home-category-card-body span {
    display: inline-flex;
    margin-bottom: 9px;
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    font-size: 10px;
    font-weight: 550;
    text-transform: uppercase;
}

.home-category-card-body h3 {
    font-size: 17px;
    line-height: 1.25;
    font-weight: 550;
    letter-spacing: -0.02em;
}

.home-category-card-body small {
    font-size: 11px;
    color: rgba(255, 255, 255, .86);
}

.fallback-card {
    background:
        radial-gradient(circle at 80% 12%, rgba(138, 80, 252, .28), transparent 32%),
        linear-gradient(135deg, #faf8ff 0%, #ece2ff 100%);
}

.fallback-card::after {
    background: linear-gradient(180deg, rgba(138, 80, 252, .1), rgba(17, 16, 22, .78));
}

.newsletter-section {
    padding: 26px 0 28px;
}

.newsletter-box {
    min-height: 116px;
    padding: 24px 34px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 20%, rgba(138, 80, 252, .28), transparent 18%),
        linear-gradient(90deg, #f6efff 0%, #fbf8ff 100%);
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 82px 1fr 1.6fr;
    align-items: center;
    gap: 24px;
}

.newsletter-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    box-shadow: 0 14px 34px rgba(138, 80, 252, .25);
}

.newsletter-box h2 {
    margin: 0 0 8px;
    color: var(--title);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 550;
}

.newsletter-box p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

.newsletter-box form {
    display: grid;
    grid-template-columns: 1fr 170px;
    gap: 12px;
}

.newsletter-box input {
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    padding: 0 16px;
    font-size: 13px;
    outline: none;
}

.newsletter-box input:focus {
    border-color: var(--primary);
}

.newsletter-box button {
    height: 46px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 550;
    cursor: pointer;
}

.newsletter-box button:hover {
    background: var(--primary-dark);
}

@media (max-width: 1050px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-side {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .hero-mini-card {
        min-height: 190px;
    }

    .popular-track {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-box {
        grid-template-columns: 70px 1fr;
    }

    .newsletter-box form {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .story-track {
        gap: 18px;
    }

    .story-item {
        width: 74px;
    }

    .story-circle {
        width: 64px;
        height: 64px;
    }

    .home-hero {
        padding: 14px 0 26px;
    }

    .hero-main-card {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 18px;
    }

    .hero-main-content {
        order: 2;
        padding: 26px 22px 28px;
    }

    .hero-main-image {
        order: 1;
        min-height: 240px;
        aspect-ratio: 16 / 10;
    }

    .hero-main-content h1 {
        font-size: 27px;
        line-height: 1.16;
    }

    .hero-main-content p {
        font-size: 13px;
    }

    .hero-side {
        grid-template-columns: 1fr;
    }

    .hero-mini-card {
        grid-template-columns: 120px 1fr;
        min-height: 145px;
    }

    .hero-mini-content {
        padding: 19px;
    }

    .hero-mini-content h2 {
        font-size: 16px;
    }

    .hero-mini-image {
        min-height: 145px;
    }

    .popular-track {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .popular-track::-webkit-scrollbar {
        display: none;
    }

    .popular-item {
        flex: 0 0 240px;
        min-height: 150px;
    }

    .home-category-grid {
        grid-template-columns: 1fr;
    }

    .home-category-card {
        height: 230px;
    }

    .newsletter-box {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 26px 22px;
    }

    .newsletter-icon {
        margin: 0 auto;
    }

    .newsletter-box form {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 680px) {
    .story-track {
        gap: 16px;
    }

    .story-item {
        width: 76px;
    }

    .story-circle {
        width: 64px;
        height: 64px;
    }

    .story-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .story-modal-card {
        width: 100%;
        max-height: calc(100vh - 24px);
        border-radius: 20px;
    }

    .story-modal-media {
        aspect-ratio: 4 / 4.7;
    }

    .story-modal-body h2 {
        font-size: 19px;
    }
}


/* Newsletter messages / honeypot */

.newsletter-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.newsletter-message {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
    font-weight: 400;
}

.newsletter-message.is-success {
    color: #16803a;
}

.newsletter-message.is-error {
    color: #c23737;
}

