/*
Theme Name: Han Casino
Theme URI: https://han-casino.com
Author: Han Casino
Description: AMP-uyumlu Han Casino paravan teması. BetTurkey benzeri mobile-first layout, Gold/Siyah palet, sticky CTA bar, Rank Math + AMP plugin uyumlu.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: han-casino
Tags: amp, casino, dark, custom-colors, custom-logo, custom-menu
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
    --hc-black:        #0a0a0a;
    --hc-black-soft:   #131313;
    --hc-panel:        #1a1a1a;
    --hc-panel-hi:     #232323;
    --hc-border:       #2a2a2a;
    --hc-border-hot:   #d4a437;

    --hc-gold:         #d4a437;
    --hc-gold-bright:  #f0c14b;
    --hc-gold-deep:    #8b6914;
    --hc-amber-glow:   rgba(212, 164, 55, 0.15);

    --hc-text:         #f5f5f5;
    --hc-text-muted:   #a0a0a0;
    --hc-text-dim:     #6b6b6b;

    --hc-success:      #4caf50;
    --hc-cta:          #d4a437;
    --hc-cta-hover:    #f0c14b;

    --hc-font-display: 'Cormorant Garamond', Georgia, serif;
    --hc-font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --hc-radius:       8px;
    --hc-radius-lg:    14px;

    --hc-max-mobile:   480px;
    --hc-max-content:  1100px;
}

/* =========================================================
   RESET + BASE
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--hc-font-body);
    background: var(--hc-black);
    color: var(--hc-text);
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(circle at 30% 0%, rgba(212, 164, 55, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 70% 100%, rgba(212, 164, 55, 0.04) 0%, transparent 60%);
    background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--hc-gold);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover, a:focus { color: var(--hc-gold-bright); }

h1, h2, h3, h4 {
    font-family: var(--hc-font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--hc-text);
    letter-spacing: 0.005em;
}

p { margin-bottom: 14px; }

/* =========================================================
   SHELL — TUM ICERIGI MOBILE-FRAME ICINE AL
   Mobile: tek kolon, dar (max 480)
   Desktop: tek kolon ortala, max 1100
   ========================================================= */
.hc-shell {
    max-width: var(--hc-max-content);
    margin: 0 auto;
    background: var(--hc-black);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
    min-height: 100vh;
    position: relative;
}

/* Desktop'ta extra container padding */
@media (min-width: 768px) {
    body { background-color: #050505; }
    .hc-shell {
        background: var(--hc-black);
        margin-top: 0;
        margin-bottom: 0;
    }
}

.hc-section {
    padding: 0 16px;
}

@media (min-width: 768px) {
    .hc-section { padding: 0 32px; }
}

/* =========================================================
   STICKY TOP CTA BAR — "RESMI GIRIS ADRESI -> TIKLA"
   ========================================================= */
.hc-top-cta {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--hc-gold) 0%, var(--hc-gold-bright) 50%, var(--hc-gold) 100%);
    color: var(--hc-black);
    padding: 11px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.hc-top-cta-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hc-top-cta-label::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--hc-black);
    border-radius: 50%;
    animation: hc-pulse 1.6s infinite;
}

@keyframes hc-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.hc-top-cta-btn {
    background: var(--hc-black);
    color: var(--hc-gold-bright) !important;
    padding: 7px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform .2s;
}

.hc-top-cta-btn:hover {
    transform: translateY(-1px);
    color: var(--hc-gold-bright) !important;
}

/* =========================================================
   HEADER
   ========================================================= */
.hc-header {
    background: var(--hc-black-soft);
    padding: 14px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--hc-border);
    gap: 10px;
    flex-wrap: nowrap;
}

.hc-logo {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
}

.hc-logo img {
    height: 32px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.hc-logo-text {
    font-family: var(--hc-font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--hc-gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hc-license-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid var(--hc-border-hot);
    border-radius: 6px;
    color: var(--hc-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex-shrink: 0;
    white-space: nowrap;
}

.hc-license-badge::before {
    content: "✓";
    font-size: 11px;
    color: var(--hc-gold-bright);
}

@media (min-width: 480px) {
    .hc-header { padding: 18px 16px; }
    .hc-logo img { height: 38px; }
    .hc-license-badge { padding: 6px 12px; font-size: 11px; }
}

@media (min-width: 768px) {
    .hc-header { padding: 22px 32px; gap: 16px; }
    .hc-logo img { height: 48px; max-width: 280px; }
    .hc-license-badge { padding: 7px 14px; font-size: 12px; gap: 6px; }
}

/* =========================================================
   MAIN BONUS CARD — buyuk, cigerli, kupali
   ========================================================= */
.hc-bonus-hero {
    margin: 16px;
    padding: 24px 22px;
    background:
        radial-gradient(circle at top right, var(--hc-amber-glow) 0%, transparent 60%),
        var(--hc-panel);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-lg);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hc-bonus-hero { margin: 24px 32px; padding: 36px 40px; }
}

.hc-bonus-tag {
    display: inline-block;
    color: var(--hc-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hc-bonus-amount {
    font-size: clamp(2rem, 8vw, 3.2rem);
    font-weight: 800;
    color: var(--hc-text);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.hc-bonus-amount em {
    color: var(--hc-gold-bright);
    font-style: normal;
    font-family: var(--hc-font-display);
    font-weight: 700;
    font-style: italic;
}

.hc-bonus-percent {
    font-family: var(--hc-font-display);
    font-style: italic;
    font-weight: 700;
    color: var(--hc-gold);
    font-size: clamp(1.4rem, 5vw, 2rem);
    line-height: 1;
    margin-bottom: 10px;
}

.hc-bonus-extras {
    color: var(--hc-text-muted);
    font-size: 13px;
    margin-bottom: 18px;
}

.hc-btn-bonus {
    flex: initial !important;
    display: inline-flex !important;
    width: auto !important;
    align-self: flex-start;
}

.hc-bonus-cta-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.hc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all .2s;
    border: 2px solid transparent;
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.hc-btn-primary {
    background: linear-gradient(135deg, var(--hc-gold) 0%, var(--hc-gold-bright) 100%);
    color: var(--hc-black) !important;
    box-shadow: 0 4px 20px rgba(212, 164, 55, 0.3);
}

.hc-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(212, 164, 55, 0.5);
    color: var(--hc-black) !important;
}

.hc-btn-secondary {
    background: transparent;
    color: var(--hc-gold) !important;
    border-color: var(--hc-border-hot);
}

.hc-btn-secondary:hover {
    background: var(--hc-amber-glow);
    color: var(--hc-gold-bright) !important;
}

.hc-bonus-trophy {
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    width: 130px;
    height: 130px;
    opacity: 0.7;
    pointer-events: none;
}

.hc-bonus-trophy img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(212, 164, 55, 0.4));
}

@media (max-width: 480px) {
    .hc-bonus-trophy { width: 90px; height: 90px; right: -20px; opacity: 0.45; }
    .hc-bonus-amount { font-size: 1.8rem; }
}

@media (min-width: 768px) {
    .hc-bonus-trophy { width: 200px; height: 200px; right: 30px; opacity: 0.85; }
    .hc-bonus-cta-row { max-width: 480px; }
}

/* =========================================================
   FEATURES STRIP — Lisansli, SSL, Anlik Odeme
   ========================================================= */
.hc-features-strip {
    margin: 0 16px;
    padding: 14px 16px;
    background: var(--hc-black-soft);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 12px;
    font-size: 12px;
    color: var(--hc-text-muted);
}

.hc-feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.hc-feature-item svg,
.hc-feature-item .icon {
    width: 14px;
    height: 14px;
    color: var(--hc-gold);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .hc-features-strip { margin: 0 32px; font-size: 14px; padding: 18px 24px; }
}

/* =========================================================
   GIRIS / KAYIT BIG BUTTONS
   ========================================================= */
.hc-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 14px 16px;
}

.hc-action-row .hc-btn {
    padding: 16px 14px;
    font-size: 15px;
}

.hc-action-row .hc-btn-primary::before {
    content: "→ ";
}

.hc-action-row .hc-btn-secondary::before {
    content: "+ ";
    margin-right: 4px;
}

@media (min-width: 768px) {
    .hc-action-row { margin: 18px 32px; max-width: 600px; }
}

/* =========================================================
   RATING BAR
   ========================================================= */
.hc-rating {
    margin: 14px 16px;
    padding: 14px 18px;
    background: var(--hc-panel);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.hc-rating-stars {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hc-rating-stars .stars {
    color: var(--hc-gold);
    font-size: 16px;
    letter-spacing: 2px;
}

.hc-rating-score {
    font-weight: 700;
    color: var(--hc-text);
}

.hc-rating-score em {
    font-style: normal;
    color: var(--hc-text-muted);
    font-weight: 400;
    font-size: 13px;
}

.hc-rating-count {
    color: var(--hc-text-dim);
    font-size: 13px;
}

@media (min-width: 768px) {
    .hc-rating { margin: 18px 32px; }
}

/* =========================================================
   "NEDEN HAN CASINO" — 4'lu ozellik kartlari
   ========================================================= */
.hc-why {
    margin: 24px 16px;
}

.hc-why-title {
    text-align: center;
    color: var(--hc-text-dim);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: none;
    margin-bottom: 16px;
    font-family: var(--hc-font-body);
}

.hc-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hc-why-card {
    background: var(--hc-panel);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    padding: 16px 14px;
    transition: border-color .2s;
}

.hc-why-card:hover {
    border-color: var(--hc-border-hot);
}

.hc-why-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--hc-amber-glow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--hc-gold-bright);
    font-size: 16px;
}

.hc-why-card h4 {
    font-family: var(--hc-font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--hc-text);
    margin-bottom: 4px;
}

.hc-why-card p {
    font-size: 12px;
    color: var(--hc-text-muted);
    line-height: 1.5;
    margin: 0;
}

@media (min-width: 768px) {
    .hc-why { margin: 36px 32px; }
    .hc-why-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .hc-why-card { padding: 22px 18px; }
    .hc-why-card-icon { width: 40px; height: 40px; font-size: 18px; }
    .hc-why-card h4 { font-size: 15px; }
    .hc-why-card p { font-size: 13px; }
}

/* =========================================================
   ARTICLE / LONG CONTENT (Make.com'dan gelecek)
   ========================================================= */
.hc-article {
    padding: 8px 22px 30px;
    color: var(--hc-text);
    font-size: 14px;
    line-height: 1.75;
}

@media (min-width: 768px) {
    .hc-article {
        padding: 8px 40px 40px;
        max-width: 760px;
        margin: 0 auto;
        font-size: 15px;
    }
}

.hc-article h1,
.hc-article h2 {
    color: var(--hc-gold-bright);
    margin: 28px 0 12px;
    font-size: 1.4rem;
    line-height: 1.3;
}

.hc-article h2:first-child { margin-top: 8px; }

.hc-article h3 {
    color: var(--hc-gold);
    margin: 22px 0 10px;
    font-size: 1.15rem;
}

.hc-article h4 {
    color: var(--hc-text);
    font-family: var(--hc-font-body);
    margin: 18px 0 8px;
    font-size: 15px;
    font-weight: 700;
}

.hc-article p { margin-bottom: 14px; }

.hc-article strong { color: var(--hc-text); font-weight: 700; }

.hc-article ul,
.hc-article ol {
    margin: 12px 0 16px 8px;
    padding-left: 12px;
    list-style: none;
}

.hc-article ul li,
.hc-article ol li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    color: var(--hc-text);
}

.hc-article ul li::before {
    content: "♦";
    position: absolute;
    left: 0;
    color: var(--hc-gold);
    font-size: 11px;
    top: 5px;
}

.hc-article ol {
    counter-reset: hc-counter;
}

.hc-article ol li {
    counter-increment: hc-counter;
}

.hc-article ol li::before {
    content: counter(hc-counter);
    position: absolute;
    left: 0;
    top: 1px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--hc-gold);
    color: var(--hc-black);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 18px;
    font-family: var(--hc-font-body);
}

.hc-article blockquote {
    border-left: 3px solid var(--hc-gold);
    background: var(--hc-panel);
    padding: 14px 18px;
    margin: 18px 0;
    color: var(--hc-text-muted);
    font-style: italic;
    border-radius: 0 var(--hc-radius) var(--hc-radius) 0;
}

.hc-article a { color: var(--hc-gold-bright); text-decoration: underline; }

.hc-article img {
    border-radius: var(--hc-radius);
    margin: 16px 0;
}

.hc-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 13px;
}

.hc-article table th,
.hc-article table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--hc-border);
    text-align: left;
}

.hc-article table th {
    background: var(--hc-panel);
    color: var(--hc-gold);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
}

/* =========================================================
   FAQ ACCORDION (AMP-uyumlu, <details>)
   ========================================================= */
.hc-faq {
    margin: 24px 16px;
    padding: 0;
}

@media (min-width: 768px) {
    .hc-faq { margin: 36px auto; max-width: 760px; }
}

.hc-faq-title {
    text-align: center;
    color: var(--hc-text-dim);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-family: var(--hc-font-body);
}

.hc-faq-item {
    background: var(--hc-panel);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color .2s;
}

.hc-faq-item[open] {
    border-color: var(--hc-border-hot);
}

.hc-faq-item summary {
    padding: 14px 16px;
    color: var(--hc-text);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.hc-faq-item summary::-webkit-details-marker { display: none; }

.hc-faq-item summary::after {
    content: "+";
    color: var(--hc-gold);
    font-size: 22px;
    font-weight: 300;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--hc-amber-glow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .25s;
}

.hc-faq-item[open] summary::after {
    content: "−";
    transform: rotate(180deg);
}

.hc-faq-answer {
    padding: 0 16px 14px;
    color: var(--hc-text-muted);
    font-size: 13px;
    line-height: 1.7;
}

/* =========================================================
   FOOTER
   ========================================================= */
.hc-sticky-bottom {
    margin: 20px 16px 0;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(212, 164, 55, 0.1) 0%, rgba(212, 164, 55, 0.05) 100%);
    border: 1px solid var(--hc-border-hot);
    border-radius: var(--hc-radius);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hc-sticky-bottom-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.hc-sticky-bottom-content {
    flex: 1;
}

.hc-sticky-bottom-content strong {
    display: block;
    color: var(--hc-gold-bright);
    font-size: 14px;
    margin-bottom: 2px;
}

.hc-sticky-bottom-content span {
    color: var(--hc-text-muted);
    font-size: 12px;
}

.hc-footer {
    padding: 30px 16px 24px;
    text-align: center;
    color: var(--hc-text-dim);
    font-size: 12px;
    border-top: 1px solid var(--hc-border);
    margin-top: 30px;
    background: var(--hc-black-soft);
}

.hc-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 14px;
    list-style: none;
}

.hc-footer-nav li { list-style: none; }

.hc-footer-nav a {
    color: var(--hc-text-muted);
    font-size: 12px;
}

.hc-footer-age {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--hc-border);
    border-radius: 50px;
    color: var(--hc-text-muted);
    margin: 14px 0;
    font-size: 11px;
}

.hc-footer-age strong {
    color: var(--hc-gold);
    font-weight: 700;
}

@media (min-width: 768px) {
    .hc-footer { padding: 40px 32px 30px; }
}

/* =========================================================
   POSTS / ARCHIVE LIST (kategori, etiket, blog)
   ========================================================= */
.hc-posts {
    padding: 20px 16px 30px;
}

@media (min-width: 768px) {
    .hc-posts { padding: 30px 32px 40px; }
}

.hc-posts-title {
    color: var(--hc-gold);
    font-size: 1.4rem;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--hc-border);
    padding-bottom: 10px;
}

.hc-post-card {
    background: var(--hc-panel);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    padding: 16px;
    margin-bottom: 12px;
    transition: border-color .2s;
}

.hc-post-card:hover { border-color: var(--hc-border-hot); }

.hc-post-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    font-family: var(--hc-font-display);
}

.hc-post-card h3 a {
    color: var(--hc-text);
}

.hc-post-card h3 a:hover {
    color: var(--hc-gold);
}

.hc-post-card .meta {
    font-size: 11px;
    color: var(--hc-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.hc-post-card .excerpt {
    color: var(--hc-text-muted);
    font-size: 13px;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hc-posts-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .hc-post-card { margin-bottom: 0; }
}

/* =========================================================
   PAGINATION
   ========================================================= */
.hc-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.hc-pagination a, .hc-pagination .current {
    padding: 8px 14px;
    background: var(--hc-panel);
    border: 1px solid var(--hc-border);
    border-radius: 6px;
    color: var(--hc-text);
    font-size: 13px;
}

.hc-pagination .current,
.hc-pagination a:hover {
    background: var(--hc-gold);
    color: var(--hc-black);
    border-color: var(--hc-gold);
}

/* =========================================================
   AMP / UTILITIES
   ========================================================= */
.amp-hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
