/*
Theme Name: Daftar Lotto Pro
Theme URI: https://daftarlotto.com/
Author: Daftar Lotto Team
Author URI: https://daftarlotto.com/
Description: Theme custom untuk Daftar Lotto - Agen Dewa Lotto 4D Resmi. Dark theme dengan aksen emas, layout 2-kolom (main + sidebar), spotlight CTA buttons + gold marquee slogan.
Version: 2.0.0
Tested up to: 6.7
Requires at least: 5.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: daftar-lotto-theme
Tags: dark, two-columns, right-sidebar, custom-menu, featured-images, custom-logo
*/

/* =====================================
   FONT IMPORTS
   ===================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;900&family=Noto+Sans:wght@400;600;700&display=swap');

/* =====================================
   CSS VARIABLES
   ===================================== */
:root {
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #1a1a1a;
    --color-bg-tertiary: #252525;
    --color-gold: #d4af37;
    --color-gold-light: #f5c842;
    --color-gold-bright: #ffd966;
    --color-gold-dark: #a8862a;
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f5c842 50%, #d4af37 100%);
    --gradient-gold-anim: linear-gradient(135deg, #a8862a 0%, #d4af37 25%, #ffd966 50%, #d4af37 75%, #a8862a 100%);
    --gradient-gold-dark: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    --color-text: #ffffff;
    --color-text-muted: #b0b0b0;
    --color-text-faded: #707070;
    --color-border: #2a2a2a;
    --color-border-gold: rgba(212, 175, 55, 0.3);
    --color-link: #f5c842;
    --color-link-hover: #ffd966;
    --font-display: 'Cinzel', Georgia, serif;
    --font-body: 'Noto Sans', -apple-system, sans-serif;
    --container-width: 1200px;
    --sidebar-width: 320px;
}

/* =====================================
   RESET & BASE
   ===================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--color-bg-primary);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--color-link-hover); }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-gold-light);
    letter-spacing: 0.5px;
}

p { margin-bottom: 1rem; color: var(--color-text); }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

/* =====================================
   SITE TITLE STRIP (paling atas)
   ===================================== */
.site-title-strip {
    background: linear-gradient(180deg, #000000, #0a0a0a);
    padding: 18px 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border-gold);
}

.site-title-strip a { text-decoration: none; }

.site-title-strip .site-title-text {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 900;
    background: var(--gradient-gold-anim);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
    animation: title-shine 4s linear infinite;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

@keyframes title-shine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* =====================================
   MARQUEE SLOGAN (gold scrolling)
   ===================================== */
.slogan-marquee {
    background: var(--gradient-gold);
    color: #1a1a1a;
    padding: 10px 0;
    overflow: hidden;
    border-top: 1px solid var(--color-gold-bright);
    border-bottom: 1px solid var(--color-gold-dark);
    position: relative;
    box-shadow: inset 0 0 20px rgba(168, 134, 42, 0.3);
}

.marquee-inner {
    display: flex;
    width: max-content;
    animation: marquee-scroll 18s linear infinite;
}

.marquee-text {
    flex-shrink: 0;
    padding-right: 60px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    color: #1a1a1a;
}

.marquee-text .sparkle {
    color: #ffffff;
    font-size: 16px;
    margin: 0 6px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.slogan-marquee:hover .marquee-inner { animation-play-state: paused; }

/* =====================================
   MAIN HEADER
   ===================================== */
.site-header {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    border-bottom: 2px solid var(--color-gold-dark);
    padding: 14px 0;
    position: relative;
}

.site-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-gold);
    opacity: 0.6;
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

/* =====================================
   MAIN NAVIGATION (horizontal, Cinzel font)
   ===================================== */
.main-nav { flex: 1 1 auto; display: flex; justify-content: flex-start; }

.main-nav ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: inline-block;
    padding: 8px 16px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-gold-light);
    letter-spacing: 1.8px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.25s ease, text-shadow 0.3s ease, transform 0.2s;
}

.main-nav a::before,
.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width 0.3s ease;
}

.main-nav a::before { top: 0; opacity: 0; }
.main-nav a::after { bottom: 0; }

.main-nav a:hover {
    color: var(--color-gold-bright);
    text-shadow: 0 0 12px rgba(255, 217, 102, 0.7);
    transform: translateY(-2px);
}

.main-nav a:hover::before,
.main-nav a:hover::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
    width: 70%;
    opacity: 1;
}

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: var(--color-gold-bright);
}

/* =====================================
   CTA SPOTLIGHT BUTTONS (DAFTAR + LOGIN)
   ===================================== */
.header-cta { display: flex; gap: 12px; flex-shrink: 0; }

.btn-cta-spotlight {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #f5c842 50%, #d4af37 100%);
    background-size: 200% 100%;
    color: #1a0d00;
    padding: 12px 30px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid #ffd966;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
    box-shadow:
        0 0 15px rgba(212, 175, 55, 0.5),
        inset 0 0 8px rgba(255, 217, 102, 0.3);
    animation:
        cta-pulse 1.8s ease-in-out infinite,
        cta-shimmer 2.5s linear infinite;
    transition: transform 0.2s ease;
    z-index: 1;
}

.btn-cta-spotlight:hover {
    transform: translateY(-3px) scale(1.06);
    color: #000;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.btn-cta-spotlight:active { transform: translateY(-1px) scale(1.02); }

.btn-cta-spotlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    transform: skewX(-20deg);
    animation: cta-sweep 3.5s infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes cta-pulse {
    0%, 100% {
        box-shadow:
            0 0 15px rgba(212, 175, 55, 0.5),
            inset 0 0 8px rgba(255, 217, 102, 0.3);
    }
    50% {
        box-shadow:
            0 0 30px rgba(245, 200, 66, 0.95),
            0 0 60px rgba(212, 175, 55, 0.45),
            inset 0 0 15px rgba(255, 217, 102, 0.6);
    }
}

@keyframes cta-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes cta-sweep {
    0% { left: -150%; }
    40% { left: 250%; }
    100% { left: 250%; }
}

.btn-cta-spotlight.btn-login-cta {
    background: linear-gradient(135deg, #b8941a 0%, #e6c44a 50%, #b8941a 100%);
    background-size: 200% 100%;
    border-color: #f5c842;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--color-gold-dark);
    color: var(--color-gold-light);
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 18px;
}

/* =====================================
   MAIN CONTENT LAYOUT
   ===================================== */
.site-main { padding: 24px 0 8px; }

.main-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 32px;
    align-items: flex-start;
}

.content-area { min-width: 0; }

/* =====================================
   ARTICLE / POST
   ===================================== */
.entry-header { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--color-border); }
.entry-title { font-size: 28px; color: var(--color-link); margin-bottom: 12px; }
.entry-meta { font-size: 12px; color: var(--color-text-faded); letter-spacing: 0.5px; }
.entry-meta span { margin-right: 16px; }
.entry-content { font-size: 15px; line-height: 1.8; }
.entry-content p { margin-bottom: 18px; color: var(--color-text); }

.entry-content h1, .entry-content h2, .entry-content h3 {
    margin-top: 28px; margin-bottom: 14px; color: var(--color-gold-light);
}
.entry-content h2 { font-size: 22px; }
.entry-content h3 { font-size: 18px; }

.entry-content a {
    color: var(--color-link);
    text-decoration: underline;
    text-decoration-color: rgba(245, 200, 66, 0.4);
}
.entry-content a:hover { text-decoration-color: var(--color-link-hover); }

.entry-content img {
    border-radius: 8px;
    margin: 20px auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-border-gold);
}

.entry-content ul, .entry-content ol {
    margin: 16px 0 20px 24px; padding-left: 8px;
}
.entry-content ul li, .entry-content ol li { margin-bottom: 8px; list-style: revert; }

.entry-content blockquote {
    border-left: 3px solid var(--color-gold);
    padding: 12px 20px;
    margin: 20px 0;
    background: var(--color-bg-secondary);
    font-style: italic;
    color: var(--color-text-muted);
}

.entry-featured-image {
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border-gold);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.entry-featured-image img { width: 100%; height: auto; display: block; }

/* =====================================
   SIDEBAR
   ===================================== */
.site-sidebar { display: flex; flex-direction: column; gap: 20px; }

.widget {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.widget-title {
    background: var(--gradient-gold);
    color: #000;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 16px;
    margin: 0;
    text-align: center;
    -webkit-text-fill-color: #000;
}

.widget-content { padding: 16px; }

.widget-banks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

.widget-banks .bank-item {
    background: #ffffff;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    color: #000;
    font-weight: 700;
    font-size: 12px;
    transition: transform 0.2s;
}

.widget-banks .bank-item:hover { transform: scale(1.03); }

.widget-banks .bank-item .status {
    display: block;
    margin-top: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.widget-banks .bank-item.online .status { color: #00a86b; }
.widget-banks .bank-item.offline .status { color: #e63946; }

.widget-partners ul { display: flex; flex-direction: column; gap: 8px; }
.widget-partners ul li { border-bottom: 1px dashed var(--color-border); padding-bottom: 8px; }
.widget-partners ul li:last-child { border-bottom: none; padding-bottom: 0; }
.widget-partners a {
    color: var(--color-link);
    font-size: 13px;
    font-weight: 600;
    display: block;
    transition: padding-left 0.2s, color 0.2s;
}
.widget-partners a:hover { color: var(--color-link-hover); padding-left: 4px; }

.widget-recent-posts ul li { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.widget-recent-posts ul li:last-child { border-bottom: none; }
.widget-recent-posts a {
    color: var(--color-link);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    display: block;
}
.widget-recent-posts a:hover { color: var(--color-link-hover); }
.widget-recent-posts .post-date {
    font-size: 11px;
    color: var(--color-text-faded);
    margin-top: 4px;
    display: block;
}

.widget-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}
.widget-contact .contact-item:last-child { border-bottom: none; }
.widget-contact .contact-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-light);
}
.widget-contact .contact-label {
    font-size: 11px;
    color: var(--color-text-faded);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.widget-contact .contact-value {
    font-size: 13px;
    color: var(--color-text);
    font-weight: 600;
}

/* =====================================
   LIVECHAT FLOATING
   ===================================== */
.livechat-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: linear-gradient(135deg, #008b8b, #00a8a8);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(0, 139, 139, 0.4), 0 0 0 4px rgba(0, 139, 139, 0.15);
    transition: transform 0.2s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: livechat-pulse 2s ease-in-out infinite;
}

.livechat-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 139, 139, 0.6), 0 0 0 6px rgba(0, 139, 139, 0.2);
    color: #ffffff;
}

.livechat-float svg { width: 18px; height: 18px; fill: #ffffff; }

@keyframes livechat-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(0, 139, 139, 0.4), 0 0 0 4px rgba(0, 139, 139, 0.15); }
    50% { box-shadow: 0 6px 20px rgba(0, 139, 139, 0.6), 0 0 0 8px rgba(0, 139, 139, 0.05); }
}

/* =====================================
   FOOTER
   ===================================== */
.site-footer {
    background: linear-gradient(180deg, #0a0a0a, #000000);
    border-top: 2px solid var(--color-gold-dark);
    padding: 24px 0 16px;
    margin-top: 0;
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-gold);
    opacity: 0.6;
}

.footer-inner { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-section h4 {
    font-size: 14px;
    color: var(--color-gold-light);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p, .footer-section li {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.footer-section a { color: var(--color-text-muted); }
.footer-section a:hover { color: var(--color-gold-light); }

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
    text-align: center;
    color: var(--color-text-faded);
    font-size: 12px;
    letter-spacing: 0.5px;
}

.footer-bottom .gold { color: var(--color-gold-light); font-weight: 700; }

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

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--gradient-gold);
    color: #000;
    border-color: var(--color-gold);
}

/* =====================================
   RESPONSIVE BREAKPOINTS
   Tablet: max-width 1024px
   Mobile: max-width 568px
   ===================================== */

@media screen and (max-width: 1024px) {
    :root {
        --container-width: 970px;
    }
    .container,
    .header-inner,
    .footer-inner {
        padding: 0 16px;
    }
    .main-layout {
        gap: 24px;
    }
    .site-title-strip h1 { font-size: 22px; }
    .main-nav a { padding: 12px 14px; font-size: 13px; }
    .header-cta .btn-cta-spotlight { padding: 8px 22px; font-size: 13px; }
}

@media screen and (max-width: 568px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .container,
    .header-inner,
    .footer-inner {
        padding: 0 12px;
    }
    .site-title-strip {
        padding: 10px 0;
    }
    .site-title-strip h1 {
        font-size: 16px;
        letter-spacing: 0.5px;
    }
    .slogan-marquee {
        font-size: 11px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
    }
    .main-nav a {
        padding: 8px 10px;
        font-size: 11px;
    }
    .header-cta {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
    }
    .header-cta .btn-cta-spotlight {
        flex: 1 1 calc(50% - 4px);
        padding: 8px 12px;
        font-size: 12px;
        text-align: center;
    }
    .entry-title { font-size: 20px; }
    .entry-content { font-size: 14px; }
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .widget-banks {
        grid-template-columns: 1fr 1fr !important;
    }
}

