/* ========================================
   SLOTSURE Blog Template - Global CSS
   ======================================== */

:root {
    --midnight: #020617;
    --midnight-light: #0a192f;
    --gold: #d4af37;
    --gold-light: #f1d279;
    --gold-dark: #aa8a2e;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border-light: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   1. LAYOUT & TYPOGRAPHY
   ======================================== */

body {
    background-color: var(--midnight);
    color: var(--text-primary);
    font-family: 'Kanit', 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
}

/* Background Glow Effects (Luxury Aesthetic) */
.luxury-bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background: radial-gradient(circle at center, var(--midnight-light) 0%, var(--midnight) 100%);
    overflow: hidden;
    pointer-events: none;
}

.luxury-bg-glow-1,
.luxury-bg-glow-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.luxury-bg-glow-1 {
    top: -20%;
    left: -10%;
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    animation: aura-move 25s ease-in-out infinite;
}

.luxury-bg-glow-2 {
    bottom: -20%;
    right: -10%;
    width: 70vw;
    height: 70vh;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    animation: aura-move 20s ease-in-out infinite reverse;
    animation-delay: -5s;
}

@keyframes aura-move {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(15%, -10%) scale(1.1);
    }
    66% {
        transform: translate(-10%, 15%) scale(0.9);
    }
}

/* ========================================
   2. BLOG CONTAINER & ARTICLE STRUCTURE
   ======================================== */

.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    z-index: 10;
}

.blog-article {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(212, 175, 55, 0.02) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 2rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .blog-article {
        border-radius: 1.5rem;
        padding: 1.5rem;
    }
}

/* ========================================
   3. ARTICLE HEADER
   ======================================== */

.blog-header {
    margin-bottom: 3rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 2rem;
}

.blog-category {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    transition: var(--transition);
}

.blog-category:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.6);
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 1.5rem 0;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .blog-title {
        font-size: 1.75rem;
    }
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1.5rem;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta-icon {
    color: var(--gold);
    font-weight: 700;
}

/* ========================================
   4. FEATURED IMAGE / HERO
   ======================================== */

.blog-featured-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 1.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.blog-featured-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.2);
}

.image-caption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    font-style: italic;
}

/* ========================================
   5. ARTICLE CONTENT
   ======================================== */

.blog-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.blog-content p {
    margin: 1.5rem 0;
}

.blog-content strong {
    color: var(--gold-light);
    font-weight: 700;
}

.blog-content em {
    color: var(--text-secondary);
    font-style: italic;
}

/* Headings within content */
.blog-content h2 {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--gold-light);
    margin: 2.5rem 0 1.5rem 0;
    line-height: 1.2;
    border-left: 4px solid var(--gold);
    padding-left: 1.5rem;
}

@media (max-width: 768px) {
    .blog-content h2 {
        font-size: 1.5rem;
    }
}

.blog-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
}

.blog-content h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
}

/* ========================================
   6. LIST STYLES
   ======================================== */

.blog-content ul,
.blog-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-content li {
    margin: 0.75rem 0;
    color: var(--text-secondary);
}

.blog-content ul li {
    list-style: none;
    position: relative;
    padding-left: 1.5rem;
}

.blog-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
    font-size: 1.2rem;
}

.blog-content ol {
    counter-reset: list-counter;
}

.blog-content ol li {
    counter-increment: list-counter;
    padding-left: 1.5rem;
}

.blog-content ol li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

/* ========================================
   7. BLOCKQUOTES & CALLOUTS
   ======================================== */

.blog-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 1.5rem;
    margin: 2rem 0;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 0.5rem;
    font-style: italic;
    color: var(--gold-light);
    font-size: 1.1rem;
}

.blog-content blockquote p {
    margin: 0;
}

.callout-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 2rem 0;
    font-weight: 500;
}

.callout-box.tip {
    background: linear-gradient(135deg, rgba(100, 200, 100, 0.1) 0%, rgba(100, 200, 100, 0.05) 100%);
    border-color: rgba(100, 200, 100, 0.3);
}

.callout-box.warning {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
    border-color: rgba(255, 165, 0, 0.3);
}

.callout-box.important {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.1) 0%, rgba(255, 100, 100, 0.05) 100%);
    border-color: rgba(255, 100, 100, 0.3);
}

/* ========================================
   8. IMAGES & FIGURES
   ======================================== */

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 2rem 0;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
}

.blog-content figure {
    margin: 2rem 0;
    text-align: center;
}

.blog-content figcaption {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    font-style: italic;
}

/* ========================================
   9. TABLES
   ======================================== */

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0.5rem;
    overflow: hidden;
}

.blog-content table thead {
    background: rgba(212, 175, 55, 0.15);
}

.blog-content table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--gold-light);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.blog-content table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    color: var(--text-secondary);
}

.blog-content table tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

/* ========================================
   10. LINKS & CODE
   ======================================== */

.blog-content a {
    color: var(--gold-light);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    transition: var(--transition);
    padding-bottom: 2px;
}

.blog-content a:hover {
    border-bottom-color: var(--gold);
    color: var(--gold);
}

.blog-content code {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #88e838;
    padding: 0.25rem 0.5rem;
    border-radius: 0.3rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.blog-content pre {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.blog-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: #88e838;
}

/* ========================================
   11. SOCIAL SHARES & CTA
   ======================================== */

.blog-share-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 1rem;
    align-items: center;
}

.blog-share-label {
    font-weight: 700;
    color: var(--text-primary);
    margin-right: 1rem;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold-light);
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.share-button:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}

/* ========================================
   12. CTA SECTION - SOD168
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin: 3rem 0;
    text-align: center;
}

.cta-section h3 {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--midnight);
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 900;
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, var(--gold-light) 0%, #f1d279 100%);
}

@media (max-width: 768px) {
    .cta-section {
        padding: 2rem;
    }
    
    .cta-button {
        display: block;
        width: 100%;
    }
}

/* ========================================
   13. RELATED ARTICLES SECTION
   ======================================== */

.related-articles-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
}

.related-articles-heading {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--gold-light);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}

.related-article-card {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-article-card:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-4px);
}

.related-article-card h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.related-article-link {
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
}

.related-article-link:hover {
    color: var(--gold);
    transform: translateX(4px);
}

/* ========================================
   14. MOBILE RESPONSIVENESS
   ======================================== */

@media (max-width: 768px) {
    .blog-container {
        padding: 1rem;
    }

    .blog-article {
        padding: 1.25rem;
    }

    .blog-title {
        font-size: 1.5rem;
    }

    .blog-meta {
        gap: 1rem;
    }

    .blog-content {
        font-size: 1rem;
    }

    .blog-content h2 {
        font-size: 1.35rem;
        padding-left: 1rem;
    }

    .blog-content h3 {
        font-size: 1.15rem;
    }

    .blog-content ul,
    .blog-content ol {
        padding-left: 1.5rem;
    }

    .blog-featured-image {
        max-height: 300px;
    }

    .cta-section {
        padding: 1.5rem;
    }

    .cta-section h3 {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .blog-article {
        border-radius: 1rem;
        padding: 1rem;
    }

    .blog-title {
        font-size: 1.35rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .blog-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .blog-featured-image {
        border-radius: 0.75rem;
    }
}

/* ========================================
   15. ACCESSIBILITY & PRINT STYLES
   ======================================== */

@media print {
    body {
        background: white;
        color: black;
    }

    .blog-article {
        background: none;
        border: none;
        box-shadow: none;
    }

    .cta-section {
        page-break-inside: avoid;
    }

    .blog-content a {
        color: black;
        border-bottom: 1px solid black;
    }
}

/* Focus styles for keyboard navigation */
.blog-content a:focus,
.cta-button:focus,
.share-button:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ========================================
   16. ANIMATION EFFECTS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-article {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover animations for links */
@keyframes goldGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    }
}

.blog-title {
    animation: fadeInUp 0.8s ease-out;
}

/* ========================================
   17. DARK MODE SUPPORT (Already Default)
   ======================================== */

/* This entire stylesheet is optimized for dark mode.
   If light mode is needed, define a light color scheme below. */
