/*
Theme Name: Teen Patti Master
Theme URI: https://teenpattimaster.com
Author: Teen Patti Master Team
Author URI: https://teenpattimaster.com
Description: Mobile-first WordPress theme for Teen Patti Master
Version: 1.0.0
Text Domain: teen-patti-master
*/

/* ==========================================================================
   1. CSS VARIABLES & RESET
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-dark: #070314;
    --bg-primary: #0e0724;
    --bg-card: #170d38;
    --bg-card-glass: rgba(26, 14, 58, 0.72);
    --bg-header: rgba(14, 7, 36, 0.88);
    
    /* Gold Accents */
    --gold-primary: #ffd000;
    --gold-light: #fff280;
    --gold-dark: #d48b00;
    --gold-gradient: linear-gradient(135deg, #FFF080 0%, #FFCA28 45%, #FF8F00 100%);
    --gold-btn-shadow: 0 8px 24px rgba(255, 175, 0, 0.38), 0 2px 6px rgba(0, 0, 0, 0.4);
    
    /* Electric Blue Accents */
    --blue-electric: #00E5FF;
    --blue-neon: #00b4d8;
    --blue-glow: rgba(0, 229, 255, 0.4);
    --blue-gradient: linear-gradient(135deg, #00E5FF 0%, #0077B6 100%);
    
    /* Purple Highlights */
    --purple-glow: rgba(170, 75, 255, 0.35);
    --purple-accent: #9d4edd;
    --purple-border: rgba(157, 78, 221, 0.3);
    
    /* Typography Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #C8C2E5;
    --text-muted: #8E85B5;
    
    /* Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --radius-full: 9999px;
    
    /* Spacing */
    --header-height: 64px;
    --mobile-max-width: 430px;
    
    /* Transitions */
    --transition-smooth: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: radial-gradient(circle at 50% 0%, #201048 0%, #0e0724 50%, #070314 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

/* ==========================================================================
   2. MOBILE VIEWPORT CONTAINER
   ========================================================================== */
.mobile-app-wrapper {
    width: 100%;
    max-width: var(--mobile-max-width);
    min-height: 100vh;
    background: linear-gradient(180deg, #11082d 0%, #0a041c 100%);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ==========================================================================
   3. MOBILE STICKY HEADER
   ========================================================================== */
.tpm-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.18);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    transition: var(--transition-smooth);
}

.tpm-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), var(--blue-electric), transparent);
    opacity: 0.6;
}

.tpm-header-container {
    height: var(--header-height);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.tpm-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.tpm-logo-link:active {
    transform: scale(0.96);
}

.tpm-logo-img {
    height: 44px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 229, 255, 0.35)) drop-shadow(0 2px 5px rgba(255, 215, 0, 0.2));
}

/* Header Right Actions */
.tpm-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tpm-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(255, 208, 0, 0.12);
    border: 1px solid rgba(255, 208, 0, 0.4);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tpm-header-badge .badge-fire {
    animation: flamePulse 1.5s infinite alternate;
}

/* Hamburger Menu Toggle */
.tpm-menu-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(157, 78, 221, 0.35);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
    touch-action: manipulation;
}

.tpm-menu-btn:active {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--gold-primary);
    transform: scale(0.94);
}

.hamburger-line {
    width: 22px;
    height: 2.5px;
    background: linear-gradient(90deg, #FFFFFF, var(--blue-electric));
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.tpm-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    background: var(--gold-primary);
}

.tpm-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.tpm-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    background: var(--gold-primary);
}

/* Navigation Drawer */
.tpm-nav-drawer {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(14, 7, 36, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--purple-accent);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85), 0 0 25px var(--purple-glow);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease, visibility 0.3s;
    z-index: 999;
}

.tpm-nav-drawer.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.tpm-nav-inner {
    padding: 20px 18px 24px;
}

/* Universal Reset & Flex for all Nav Drawer Lists */
.tpm-nav-drawer ul,
.tpm-nav-drawer ol,
.tpm-nav-inner ul,
.tpm-nav-menu,
.tpm-nav-drawer .menu {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

/* Reset for all Nav Drawer List Items */
.tpm-nav-drawer li,
.tpm-nav-inner li,
.tpm-nav-item,
.tpm-nav-drawer .menu-item,
.tpm-nav-drawer .page_item {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: block !important;
    width: 100% !important;
}

/* Universal Styling for ALL Navigation Links inside Drawer */
.tpm-nav-drawer a,
.tpm-nav-inner a:not(.tpm-btn),
.tpm-nav-menu a,
.tpm-nav-link,
.tpm-nav-drawer .menu-item a,
.tpm-nav-drawer .page_item a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 13px 16px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--radius-md) !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.2px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Navigation Icon */
.tpm-nav-drawer a .nav-icon,
.tpm-nav-link .nav-icon {
    font-size: 1.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 24px !important;
    line-height: 1 !important;
}

/* Active & Hover States */
.tpm-nav-drawer a:hover,
.tpm-nav-drawer a:active,
.tpm-nav-drawer a:focus,
.tpm-nav-drawer .current-menu-item > a,
.tpm-nav-drawer .current_page_item > a,
.tpm-nav-drawer li.active > a,
.tpm-nav-link.active,
.tpm-nav-drawer a.active {
    background: linear-gradient(90deg, rgba(255, 208, 0, 0.18) 0%, rgba(0, 229, 255, 0.12) 100%) !important;
    border-color: rgba(255, 208, 0, 0.45) !important;
    color: var(--gold-light, #FFF280) !important;
    text-decoration: none !important;
    transform: translateX(4px) !important;
    box-shadow: 0 4px 15px rgba(255, 208, 0, 0.15) !important;
}

.tpm-nav-cta {
    padding-top: 6px;
    margin-top: 4px;
}

/* Backdrop */
.tpm-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    z-index: 998;
}

.tpm-nav-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.tpm-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tpm-hero-section {
    position: relative;
    padding: 16px 16px 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ambient glow and backgrounds */
.tpm-hero-bg-glow {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.35) 0%, rgba(0, 229, 255, 0.18) 45%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

/* Floating animated particles */
.tpm-hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 4s ease-in-out infinite alternate;
}

.p-1 {
    width: 6px;
    height: 6px;
    background: var(--gold-primary);
    top: 15%;
    left: 12%;
    box-shadow: 0 0 10px var(--gold-primary);
    animation-delay: 0s;
}

.p-2 {
    width: 8px;
    height: 8px;
    background: var(--blue-electric);
    top: 25%;
    right: 14%;
    box-shadow: 0 0 12px var(--blue-electric);
    animation-delay: 1.2s;
}

.p-3 {
    width: 5px;
    height: 5px;
    background: #ff52d9;
    top: 55%;
    left: 8%;
    box-shadow: 0 0 8px #ff52d9;
    animation-delay: 2.1s;
}

.p-4 {
    width: 7px;
    height: 7px;
    background: var(--gold-light);
    top: 65%;
    right: 10%;
    box-shadow: 0 0 10px var(--gold-light);
    animation-delay: 0.8s;
}

.tpm-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Hero Pill Badge */
.tpm-badge-wrap {
    margin-bottom: 14px;
}

.tpm-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: linear-gradient(90deg, rgba(255, 208, 0, 0.12) 0%, rgba(0, 229, 255, 0.12) 100%);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: var(--radius-full);
    box-shadow: 0 2px 12px rgba(255, 208, 0, 0.15), inset 0 0 8px rgba(0, 229, 255, 0.1);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #00FF66;
    border-radius: 50%;
    box-shadow: 0 0 8px #00FF66;
    animation: livePulse 1.8s infinite;
}

.badge-text {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #FFF176 0%, #00E5FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Artwork Frame */
.tpm-hero-artwork-wrapper {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 16px;
}

.artwork-glow-ring {
    position: absolute;
    inset: -6px;
    background: linear-gradient(135deg, rgba(255, 208, 0, 0.5), rgba(0, 229, 255, 0.4), rgba(157, 78, 221, 0.6));
    border-radius: var(--radius-xl);
    filter: blur(12px);
    opacity: 0.75;
    z-index: 1;
    animation: pulseRing 3.5s infinite alternate;
}

.tpm-hero-artwork-card {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, #221252 0%, #120930 100%);
    border: 2px solid rgba(255, 215, 0, 0.45);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.tpm-hero-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hero Content & Typography */
.tpm-hero-content {
    width: 100%;
}

.tpm-hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.5px;
}

.title-highlight {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(255, 200, 0, 0.4));
    display: inline-block;
}

.tpm-hero-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.48;
    margin-bottom: 20px;
    padding: 0 6px;
    font-weight: 400;
}

/* CTA Buttons */
.tpm-hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 22px;
}

.tpm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: none;
    touch-action: manipulation;
}

.tpm-btn:active {
    transform: scale(0.97);
}

/* Primary Button: Gold 3D Gaming Button */
.tpm-btn-primary {
    background: var(--gold-gradient);
    color: #3b1e00;
    box-shadow: var(--gold-btn-shadow);
    border-bottom: 3px solid #b36b00;
}

.tpm-btn-primary .btn-text {
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #2b1400;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.tpm-btn-primary .btn-icon {
    font-size: 1.25rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Shimmer shine animation on primary button */
.btn-shine {
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-25deg);
    animation: shineSweep 3.2s infinite ease-in-out;
}

/* Secondary Button: Electric Blue Border Glow */
.tpm-btn-secondary {
    background: rgba(14, 7, 36, 0.7);
    color: var(--blue-electric);
    border: 1.5px solid var(--blue-electric);
    box-shadow: 0 4px 16px rgba(0, 229, 255, 0.2), inset 0 0 12px rgba(0, 229, 255, 0.1);
    backdrop-filter: blur(8px);
}

.tpm-btn-secondary .btn-text {
    color: #FFFFFF;
}

.tpm-btn-secondary .btn-icon {
    font-size: 1.1rem;
    color: var(--blue-electric);
}

.tpm-btn-secondary:active {
    background: rgba(0, 229, 255, 0.15);
    border-color: #FFFFFF;
}

.tpm-btn-block {
    width: 100%;
}

/* Trust / Feature Badges Strip */
.tpm-hero-trust-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
}

.trust-icon {
    font-size: 1.1rem;
}

.trust-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.trust-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   5. ARTICLES & INNER PAGE TEMPLATES
   ========================================================================== */
.tpm-section {
    padding: 24px 16px;
    width: 100%;
}

.tpm-page-header {
    padding: 20px 16px 12px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.tpm-page-header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tpm-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 14px;
    transition: var(--transition-smooth);
}

.tpm-back-link:active {
    background: rgba(255, 208, 0, 0.15);
    border-color: var(--gold-primary);
    color: var(--gold-light);
    transform: translateX(-3px);
}

.tpm-page-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.tpm-page-subtitle {
    font-size: 0.86rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 340px;
    margin-bottom: 10px;
}

.tpm-articles-page-section {
    padding-top: 6px;
}

.tpm-articles-section {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(157, 78, 221, 0.2);
    background: linear-gradient(180deg, rgba(14, 7, 36, 0.4) 0%, rgba(20, 10, 48, 0.6) 100%);
}

.tpm-section-header {
    text-align: center;
    margin-bottom: 20px;
}

.tpm-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--blue-electric);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.tpm-section-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.tpm-section-subtitle {
    font-size: 0.86rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Articles List & Cards */
.tpm-articles-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.tpm-article-card {
    background: linear-gradient(145deg, rgba(28, 16, 62, 0.88) 0%, rgba(16, 9, 38, 0.95) 100%);
    border: 1px solid rgba(157, 78, 221, 0.28);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.tpm-article-card:active {
    transform: scale(0.985);
    border-color: rgba(255, 208, 0, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 208, 0, 0.2);
}

/* Thumbnail Wrap */
.article-thumb-wrap {
    position: relative;
    width: 100%;
    height: 140px;
    background: #150a32;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-thumb-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(16, 9, 38, 0.9) 100%);
}

.article-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.tpm-article-card:active .article-thumb-img {
    transform: scale(1.05);
}

.article-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 3px 10px;
    background: rgba(14, 7, 36, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 208, 0, 0.5);
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* Article Content */
.article-content {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
    color: #FFFFFF;
}

.article-title a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:active {
    color: var(--gold-primary);
}

.article-excerpt {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.48;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--blue-electric);
    text-decoration: none;
    margin-top: auto;
    transition: var(--transition-smooth);
    width: fit-content;
}

.article-read-more .arrow-icon {
    display: inline-block;
    font-size: 1rem;
    transition: transform 0.25s ease;
}

.article-read-more:active {
    color: var(--gold-primary);
}

.article-read-more:active .arrow-icon {
    transform: translateX(4px);
}

/* Articles Bottom CTA */
.tpm-articles-cta {
    margin-top: 20px;
    width: 100%;
}

/* ==========================================================================
   6. NEW TRENDING GAMES SECTION
   ========================================================================== */
.tpm-games-section {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    background: linear-gradient(180deg, rgba(20, 10, 48, 0.7) 0%, rgba(11, 5, 28, 0.9) 100%);
}

.tpm-games-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.tpm-game-card {
    background: linear-gradient(135deg, rgba(32, 16, 72, 0.92) 0%, rgba(17, 8, 42, 0.96) 100%);
    border: 1px solid rgba(157, 78, 221, 0.32);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition-smooth);
}

.tpm-game-card:active {
    transform: scale(0.985);
    border-color: rgba(255, 208, 0, 0.55);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 208, 0, 0.2);
}

.game-card-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-thumb-box {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #140b2f;
    border: 1.5px solid rgba(255, 208, 0, 0.45);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 0 8px rgba(255, 208, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.tpm-game-card:active .game-thumb-img {
    transform: scale(1.08);
}

.game-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
}

.game-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-trending-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    background: linear-gradient(90deg, rgba(255, 87, 34, 0.2) 0%, rgba(255, 193, 7, 0.2) 100%);
    border: 1px solid rgba(255, 152, 0, 0.55);
    border-radius: var(--radius-full);
    font-size: 0.64rem;
    font-weight: 800;
    color: #FFA726;
    letter-spacing: 0.4px;
    white-space: nowrap;
    box-shadow: 0 0 8px rgba(255, 87, 34, 0.2);
}

.game-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-action-row {
    width: 100%;
}

.tpm-game-btn {
    min-height: 44px;
    padding: 8px 16px;
    font-size: 0.92rem;
    border-radius: var(--radius-md);
}

.tpm-games-cta {
    margin-top: 18px;
    width: 100%;
}

/* ==========================================================================
   7. ABOUT TEEN PATTI MASTER & EXPLORE CARDS
   ========================================================================== */
.tpm-about-section {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(157, 78, 221, 0.25);
    background: linear-gradient(180deg, rgba(16, 8, 40, 0.6) 0%, rgba(10, 4, 26, 0.95) 100%);
    padding-bottom: 36px;
}

.tpm-about-card {
    background: linear-gradient(145deg, rgba(28, 14, 62, 0.92) 0%, rgba(16, 8, 38, 0.96) 100%);
    border: 1px solid rgba(157, 78, 221, 0.32);
    border-radius: var(--radius-lg);
    padding: 20px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
    text-align: left;
}

.tpm-about-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 12px;
}

.tpm-about-text:last-of-type {
    margin-bottom: 0;
}

.tpm-about-text strong {
    color: var(--gold-light);
    font-weight: 700;
}

.about-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    text-align: center;
}

.highlight-icon {
    font-size: 1.2rem;
}

.highlight-text {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Explore Nav Cards */
.tpm-explore-cards-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.tpm-explore-nav-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    background: linear-gradient(135deg, rgba(32, 16, 72, 0.9) 0%, rgba(18, 9, 44, 0.96) 100%);
    border: 1.5px solid rgba(0, 229, 255, 0.32);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(0, 229, 255, 0.06);
    transition: var(--transition-smooth);
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
}

.tpm-explore-nav-card:nth-child(2) {
    border-color: rgba(255, 208, 0, 0.38);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(255, 208, 0, 0.06);
}

.tpm-explore-nav-card:active {
    transform: scale(0.98);
    border-color: var(--gold-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 208, 0, 0.25);
}

.explore-nav-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.explore-nav-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.explore-nav-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 2px;
    line-height: 1.25;
}

.explore-nav-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.explore-nav-arrow {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--blue-electric);
    transition: transform 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}

.tpm-explore-nav-card:nth-child(2) .explore-nav-arrow {
    color: var(--gold-primary);
}

.tpm-explore-nav-card:active .explore-nav-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   8. MOBILE FOOTER
   ========================================================================== */
.tpm-footer {
    background: linear-gradient(180deg, rgba(14, 7, 36, 0.98) 0%, #060212 100%);
    border-top: 1px solid rgba(255, 215, 0, 0.22);
    position: relative;
    z-index: 2;
    padding: 28px 16px 32px;
    margin-top: auto;
}

.tpm-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), var(--blue-electric), transparent);
    opacity: 0.7;
}

.tpm-footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.tpm-footer-logo-wrap {
    display: flex;
    justify-content: center;
}

.tpm-footer-logo {
    height: 40px;
    width: auto;
    max-width: 155px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 229, 255, 0.35));
}

.tpm-footer-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
}

/* Quick Links Grid */
.tpm-footer-links-nav {
    width: 100%;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(157, 78, 221, 0.22);
    border-radius: var(--radius-md);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tpm-footer-links-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 10px;
}

.tpm-footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    touch-action: manipulation;
}

.tpm-footer-link .link-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.tpm-footer-link:active {
    background: rgba(255, 208, 0, 0.12);
    border-color: rgba(255, 208, 0, 0.45);
    color: var(--gold-light);
    transform: scale(0.97);
}

.tpm-footer-divider {
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    margin: 4px auto 0;
}

.tpm-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.tpm-footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: rgba(255, 208, 0, 0.1);
    border: 1px solid rgba(255, 208, 0, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.tpm-footer-copyright {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ==========================================================================
   9. PRIVACY POLICY PAGE STYLES
   ========================================================================== */
.tpm-policy-section {
    padding: 12px 16px 36px;
    position: relative;
    z-index: 2;
}

.tpm-policy-card {
    background: linear-gradient(145deg, rgba(26, 13, 58, 0.94) 0%, rgba(14, 7, 36, 0.98) 100%);
    border: 1px solid rgba(157, 78, 221, 0.32);
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.policy-block {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 18px;
}

.policy-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.policy-block-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
}

.policy-block-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 208, 0, 0.15);
    border: 1px solid rgba(255, 208, 0, 0.45);
    color: var(--gold-primary);
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.policy-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 8px;
}

.policy-text:last-child {
    margin-bottom: 0;
}

.policy-list {
    list-style: none;
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 4px;
}

.policy-list-item {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.policy-list-item::before {
    content: '•';
    color: var(--blue-electric);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

.policy-contact-box {
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.28);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.policy-contact-box p {
    font-size: 0.86rem;
    color: var(--text-primary);
    line-height: 1.55;
}

.policy-last-updated {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    margin-top: 8px;
}

/* ==========================================================================
   10. SINGLE ARTICLE POST STYLES
   ========================================================================== */
.tpm-single-title {
    font-size: 1.45rem;
    line-height: 1.25;
    margin-bottom: 8px;
}

.tpm-article-meta-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 500;
}

.tpm-article-meta-strip .meta-dot {
    color: rgba(255, 255, 255, 0.3);
}

.tpm-single-content-section {
    padding: 8px 16px 36px;
    position: relative;
    z-index: 2;
}

.tpm-single-card {
    background: linear-gradient(145deg, rgba(26, 13, 58, 0.94) 0%, rgba(14, 7, 36, 0.98) 100%);
    border: 1px solid rgba(157, 78, 221, 0.32);
    border-radius: var(--radius-lg);
    padding: 16px 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}

.single-featured-wrap {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 18px;
    border: 1.5px solid rgba(255, 208, 0, 0.35);
    background: #150a32;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.single-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tpm-entry-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.68;
    text-align: left;
}

.tpm-entry-content p {
    margin-bottom: 14px;
}

.tpm-entry-content .lead-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.tpm-entry-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-light);
    margin: 22px 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.2px;
}

.tpm-entry-content strong {
    color: #FFFFFF;
    font-weight: 700;
}

.tpm-tip-callout {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 16px 0;
}

.tip-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.tip-body {
    font-size: 0.84rem;
    color: var(--text-primary);
    line-height: 1.48;
}

.single-bullet-list {
    margin: 10px 0 16px;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.single-bullet-list li {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.single-bottom-cta {
    background: linear-gradient(135deg, rgba(32, 16, 72, 0.95) 0%, rgba(18, 9, 44, 0.98) 100%);
    border: 1.5px solid rgba(255, 208, 0, 0.4);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    text-align: center;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(255, 208, 0, 0.08);
}

.single-bottom-cta h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #FFFFFF;
}

.single-bottom-cta p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ==========================================================================
   11. 404 ERROR PAGE STYLES
   ========================================================================== */
.tpm-404-section {
    padding: 40px 16px 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 55vh;
}

.tpm-404-card {
    background: linear-gradient(145deg, rgba(26, 13, 58, 0.94) 0%, rgba(14, 7, 36, 0.98) 100%);
    border: 1px solid rgba(157, 78, 221, 0.32);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.tpm-404-badge {
    display: inline-flex;
    padding: 4px 14px;
    background: rgba(255, 87, 34, 0.15);
    border: 1px solid rgba(255, 87, 34, 0.45);
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 800;
    color: #FF7043;
    letter-spacing: 0.6px;
}

.tpm-404-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #FFFFFF;
}

.tpm-404-desc {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tpm-404-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

/* ==========================================================================
   12. KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes flamePulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px #FF5722); }
    100% { transform: scale(1.18); filter: drop-shadow(0 0 6px #FF9800); }
}

@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

@keyframes pulseRing {
    0% { transform: scale(0.98); opacity: 0.5; }
    100% { transform: scale(1.02); opacity: 0.85; }
}

@keyframes particleFloat {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-14px) scale(1.2); }
}

@keyframes shineSweep {
    0% { left: -120%; }
    25%, 100% { left: 160%; }
}

/* ==========================================================================
   7. RESPONSIVENESS (SMALL MOBILE SCREENS < 375px)
   ========================================================================== */
@media (max-width: 374px) {
    .tpm-hero-title {
        font-size: 1.55rem;
    }
    
    .tpm-hero-desc {
        font-size: 0.82rem;
    }
    
    .tpm-btn {
        min-height: 48px;
        font-size: 0.95rem;
    }
    
    .trust-label {
        font-size: 0.68rem;
    }
    
    .tpm-section-title {
        font-size: 1.35rem;
    }
    
    .article-title {
        font-size: 0.98rem;
    }
    
    .article-thumb-wrap {
        height: 125px;
    }
}