/* HT Sinema — Tema CSS değişkenlerini tam kullanan stil */

/* ══════════════════════════════════════════════════════════
   FİLM KARTI (shortcode / arşiv)
══════════════════════════════════════════════════════════ */
.hts-grid-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.hts-film-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--trans);
}
.hts-film-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hts-film-card__poster {
    display: block;
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--bg3);
}
.hts-film-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.hts-film-card:hover .hts-film-card__poster img {
    transform: scale(1.04);
}
.hts-film-card__no-poster {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text3);
}

.hts-film-card__score {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,.78);
    color: #ffd700;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    backdrop-filter: blur(4px);
}
.hts-film-card__cert {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
}

.hts-film-card__body {
    padding: 8px 10px 10px;
}
.hts-film-card__title {
    display: block;
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    text-decoration: none;
}
.hts-film-card__title:hover { color: var(--primary); }
.hts-film-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 11px;
    color: var(--text3);
}
.hts-film-card__meta span::after { content: '·'; margin-left: 4px; }
.hts-film-card__meta span:last-child::after { content: ''; }

/* ══════════════════════════════════════════════════════════
   FİLM DETAY SAYFASI
══════════════════════════════════════════════════════════ */

/* Hero afişi */
.hts-film-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--bg3);
    margin-bottom: 24px;
}
.hts-film-hero__backdrop {
    width: 100%;
    min-height: 380px;
    max-height: 460px;
    object-fit: cover;
    object-position: center top;
    display: block;
    opacity: .45;
    filter: blur(3px);
}
.hts-film-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(13,13,13,.97) 40%, rgba(13,13,13,.4) 100%);
    display: flex;
    align-items: center;
    padding: 32px 24px;
    min-height: 380px;
}
.hts-film-hero__content {
    display: flex;
    gap: 28px;
    align-items: center;
    max-width: 860px;
    width: 100%;
}
.hts-film-hero__poster-wrap {
    flex-shrink: 0;
    width: 160px;
}
.hts-film-hero__poster-wrap img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: block;
}
.hts-film-hero__info { flex: 1; }
.hts-film-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 900;
    color: var(--white);
    margin: 0 0 4px;
    line-height: 1.2;
}
.hts-film-hero__original {
    color: var(--text2);
    font-size: 13px;
    margin: 0 0 8px;
}
.hts-film-hero__tagline {
    color: var(--primary);
    font-style: italic;
    font-size: 14px;
    margin: 0 0 10px;
}
.hts-film-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.hts-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
    background: var(--bg4);
    color: var(--text2);
    border: 1px solid var(--border2);
}
.hts-badge--score {
    background: #1a3a1a;
    color: #4caf50;
    border-color: #2a5a2a;
}
.hts-badge--primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary-dark);
}

/* Bilgi tablosu */
.hts-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}
.hts-info-table th,
.hts-info-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
.hts-info-table th {
    color: var(--text2);
    font-weight: 600;
    width: 130px;
    white-space: nowrap;
    background: var(--bg3);
}
.hts-info-table td { color: var(--text); }
.hts-info-table tr:last-child th,
.hts-info-table tr:last-child td { border-bottom: none; }

/* Fragman */
.hts-trailer-wrap { margin: 24px 0; }
.hts-trailer-wrap h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}
.hts-trailer-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: var(--bg3);
    border-radius: var(--radius);
}
.hts-trailer-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Puan kutusu */
.hts-score-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 16px 0;
}
.hts-score-box__tmdb {
    text-align: center;
}
.hts-score-box__num {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 900;
    color: #ffd700;
    line-height: 1;
}
.hts-score-box__label {
    font-size: 11px;
    color: var(--text3);
    margin-top: 2px;
}
.hts-score-box__divider {
    width: 1px;
    height: 50px;
    background: var(--border);
}
.hts-score-box__editor {
    flex: 1;
    font-size: 13px;
    color: var(--text2);
    line-height: 1.5;
}

/* Artılar / Eksiler */
.hts-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}
.hts-pros-cons__box {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
}
.hts-pros-cons__title {
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 8px;
}
.hts-pros-cons--pros .hts-pros-cons__title { color: #4caf50; }
.hts-pros-cons--cons .hts-pros-cons__title { color: #f44336; }
.hts-pros-cons__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hts-pros-cons__list li {
    font-size: 13px;
    color: var(--text);
    padding: 3px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 6px;
}
.hts-pros-cons__list li:last-child { border-bottom: none; }
.hts-pros-cons--pros li::before { content: '✓'; color: #4caf50; }
.hts-pros-cons--cons li::before { content: '✕'; color: #f44336; }

/* Kullanıcı puanlama */
.hts-user-rating {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin: 16px 0;
    text-align: center;
}
.hts-user-rating__title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    margin: 0 0 10px;
}
.hts-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}
.hts-star {
    font-size: 28px;
    cursor: pointer;
    color: var(--border2);
    transition: color .15s;
    background: none;
    border: none;
    padding: 2px;
    line-height: 1;
}
.hts-star:hover,
.hts-star.active { color: #ffd700; }
.hts-user-rating__feedback {
    font-size: 12px;
    color: var(--text3);
    min-height: 18px;
}

/* Taxonomy sayfası başlık */
.hts-tax-hero {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 24px;
}
.hts-tax-hero h1 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    color: var(--text);
    margin: 0 0 6px;
}
.hts-tax-hero p {
    color: var(--text2);
    font-size: 14px;
    margin: 0;
}

/* Light mode override — tamamen otomatik, CSS değişkenleriyle */
body.ht-light-mode .hts-film-hero__backdrop { opacity: .25; }
body.ht-light-mode .hts-film-hero__overlay {
    background: linear-gradient(to right, rgba(245,245,245,.97) 35%, rgba(245,245,245,.4) 100%);
}
body.ht-light-mode .hts-film-hero__title { color: var(--text); }

/* ══════════════════════════════════════════════════════════
   ARŞİV SAYFASI
══════════════════════════════════════════════════════════ */

/* Filtre çubuğu */
.hts-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 20px;
}
.hts-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hts-filter-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.hts-filter-select {
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    color: var(--text);
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
    min-width: 130px;
}
.hts-filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Arşiv grid — büyük kartlar */
.hts-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

/* Büyük kart varyantı */
.hts-film-card--lg .hts-film-card__title {
    font-size: 13px;
}

/* Sayfalama */
.hts-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    margin: 20px 0 30px;
}
.hts-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--trans);
}
.hts-pagination .page-numbers:hover,
.hts-pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
    .hts-grid-wrap { grid-template-columns: repeat(3, 1fr); }
    .hts-pros-cons  { grid-template-columns: 1fr; }
    .hts-film-hero__content { flex-direction: column; align-items: flex-start; }
    .hts-film-hero__poster-wrap { width: 100px; }
}
@media (max-width: 400px) {
    .hts-grid-wrap { grid-template-columns: repeat(2, 1fr); }
}

/* Hero — backdrop olmadığında düz koyu arka plan */
.hts-film-hero--no-backdrop {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
}
.hts-film-hero--no-backdrop .hts-film-hero__overlay {
    position: relative;
    background: none;
    padding: 24px;
}

/* ── Paylaş Butonları ─────────────────────────────────── */
.ht-share-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.ht-share-bar .ht-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--trans);
    border: none;
    cursor: pointer;
}
.ht-share-bar a[href*="twitter"],
.ht-share-bar a[href*="x.com"] {
    background: #000;
    color: #fff;
    border: 1px solid #333;
}
.ht-share-bar a[href*="twitter"]:hover,
.ht-share-bar a[href*="x.com"]:hover {
    background: #222;
}
.ht-share-bar a[href*="facebook"] {
    background: #1877f2;
    color: #fff;
}
.ht-share-bar a[href*="facebook"]:hover {
    background: #1465d0;
}
.ht-share-bar a[href*="whatsapp"],
.ht-share-bar a[href*="wa.me"] {
    background: #25d366;
    color: #fff;
}
.ht-share-bar a[href*="whatsapp"]:hover,
.ht-share-bar a[href*="wa.me"]:hover {
    background: #1da851;
}
