/*
Theme Name: समाचार प्रो - Premium News Edition
Author: Pradeep Kumar
Version: 3.0
Description: एडवांस्ड न्यूज़ थीम विथ मॉडर्न फीचर्स
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    --primary:      #d32f2f;
    --primary-dark: #b71c1c;
    --primary-light: #ff6659;
    --secondary:    #0277bd;
    --accent:       #ffa000;
    --black:        #0a0a0a;
    --dark:         #1a1a1a;
    --gray:         #424242;
    --light-gray:   #f5f5f5;
    --border:       #e0e0e0;
    --white:        #ffffff;
    --success:      #388e3c;
    --wa-green:     #25D366;
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
    --shadow-md:    0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg:    0 8px 24px rgba(0,0,0,0.16);
    --radius-sm:    6px;
    --radius:       10px;
    --radius-lg:    16px;
    --font:         'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
    --font-serif:   'Noto Serif Devanagari', Georgia, serif;
    --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: #fafafa;
    color: var(--dark);
    font-size: 15px;
    line-height: 1.6;
    padding-bottom: 65px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font);
    transition: var(--transition);
}

/* =============================================
   SKELETON LOADER
   ============================================= */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    padding: 12px;
    background: white;
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.skeleton-image {
    width: 100%;
    height: 180px;
    margin-bottom: 12px;
}

.skeleton-title {
    height: 20px;
    width: 80%;
    margin-bottom: 8px;
}

.skeleton-text {
    height: 14px;
    width: 100%;
    margin-bottom: 6px;
}

/* =============================================
   LIVE NEWS TICKER
   ============================================= */
.live-ticker-wrap {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    height: 42px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(211,47,47,0.25);
}

.live-ticker-label {
    background: var(--primary-dark);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    z-index: 2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 4px 0 12px rgba(0,0,0,0.3);
    position: relative;
}

.live-ticker-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ff1744;
    border-radius: 50%;
    animation: pulse-live 1.5s infinite;
    box-shadow: 0 0 8px #ff1744;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.live-ticker-scroll {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.live-ticker-text {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    gap: 0;
}

.live-ticker-text a {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 0 40px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.live-ticker-text a::before {
    content: '•';
    color: var(--accent);
    font-size: 16px;
}

.live-ticker-wrap:hover .live-ticker-text {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =============================================
   HEADER
   ============================================= */
.sp-header {
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: var(--shadow-md);
}

.sp-header-top {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sp-date-time {
    display: flex;
    gap: 14px;
    font-size: 11px;
    color: rgba(255,255,255,0.8);
}

.sp-social-links {
    display: flex;
    gap: 8px;
}

.sp-social-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 13px;
    transition: var(--transition);
}

.sp-social-icon:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.sp-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    gap: 12px;
}

.sp-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.sp-logo:hover {
    transform: scale(1.02);
}

.sp-logo-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(211,47,47,0.3);
    position: relative;
    overflow: hidden;
}

.sp-logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: logo-shine 3s infinite;
}

@keyframes logo-shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.sp-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sp-logo-main {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sp-logo-sub {
    font-size: 10px;
    color: var(--gray);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.sp-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    color: var(--gray);
    position: relative;
    overflow: hidden;
}

.sp-icon-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s;
}

.sp-icon-btn:hover::before {
    opacity: 1;
}

.sp-icon-btn svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.sp-icon-btn:hover svg {
    stroke: white;
    transform: scale(1.1);
}

.sp-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid white;
    z-index: 2;
}

/* Desktop Navigation */
.sp-desktop-nav {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.sp-desktop-nav-inner {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 14px;
    max-width: 1400px;
    margin: 0 auto;
}

.sp-desktop-nav-inner::-webkit-scrollbar {
    display: none;
}

.sp-nav-item {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.sp-nav-item::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.sp-nav-item:hover::before,
.sp-nav-item.active::before {
    transform: scaleX(1);
}

.sp-nav-item:hover,
.sp-nav-item.active {
    color: var(--primary);
}

.sp-nav-icon {
    font-size: 16px;
}

/* Mobile Navigation */
.sp-mobile-nav {
    border-top: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--white);
}

.sp-mobile-nav::-webkit-scrollbar {
    display: none;
}

.sp-mobile-nav-inner {
    display: flex;
    padding: 0 6px;
}

.sp-mob-tab {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    flex-shrink: 0;
    position: relative;
}

.sp-mob-tab::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.sp-mob-tab:hover::before,
.sp-mob-tab.active::before {
    transform: scaleX(1);
}

.sp-mob-tab:hover,
.sp-mob-tab.active {
    color: var(--primary);
}

/* =============================================
   SIDE DRAWER
   ============================================= */
.sp-sidenav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 99999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
}

.sp-sidenav.open {
    transform: translateX(0);
}

.sp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99998;
    backdrop-filter: blur(4px);
}

.sp-overlay.show {
    display: block;
}

.sp-sidenav-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sp-sidenav-logo {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 900;
    color: white;
}

.sp-sidenav-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sp-sidenav-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.sp-sidenav-links {
    padding: 20px 0;
}

.sp-sidenav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    border-left: 4px solid transparent;
    transition: var(--transition);
}

.sp-sidenav-links a:hover {
    background: var(--light-gray);
    border-left-color: var(--primary);
    color: var(--primary);
    padding-left: 28px;
}

/* =============================================
   SWIPE SLIDER (Top News)
   ============================================= */
.sp-swipe-container {
    position: relative;
    overflow: hidden;
    margin: 12px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.sp-swipe-wrapper {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: pan-y;
}

.sp-swipe-slide {
    min-width: 100%;
    position: relative;
    height: 300px;
}

.sp-swipe-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-swipe-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.sp-swipe-cat {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.sp-swipe-title {
    color: white;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 6px;
}

.sp-swipe-meta {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}

.sp-swipe-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.sp-swipe-dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    transition: all 0.3s;
    cursor: pointer;
}

.sp-swipe-dot.active {
    width: 24px;
    border-radius: 4px;
    background: white;
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.sp-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.sp-grid {
    display: grid;
    gap: 12px;
    padding: 12px;
}

/* News Cards */
.sp-news-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.sp-news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.sp-card-image {
    position: relative;
    overflow: hidden;
}

.sp-card-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.4s;
}

.sp-news-card:hover .sp-card-image img {
    transform: scale(1.08);
}

.sp-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 1;
}

.sp-card-content {
    padding: 14px;
}

.sp-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sp-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--gray);
}

.sp-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* =============================================
   FEATURED VIDEO SECTION
   ============================================= */
.sp-video-section {
    margin: 16px 12px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.sp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sp-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 900;
    color: var(--dark);
}

.sp-section-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.sp-view-all {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sp-video-grid {
    display: grid;
    gap: 12px;
}

.sp-video-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.sp-video-thumb {
    position: relative;
}

.sp-video-thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.sp-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(211,47,47,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.sp-video-card:hover .sp-play-btn {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.sp-video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

/* =============================================
   WEB STORIES SECTION
   ============================================= */
.sp-stories-section {
    margin: 16px 12px;
    overflow: hidden;
}

.sp-stories-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    padding: 4px 0;
}

.sp-stories-scroll::-webkit-scrollbar {
    display: none;
}

.sp-story-item {
    position: relative;
    min-width: 140px;
    height: 240px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: var(--shadow-md);
}

.sp-story-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-story-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
}

.sp-story-title {
    color: white;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.sp-story-ring {
    position: absolute;
    inset: -3px;
    border: 3px solid var(--primary);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

/* =============================================
   POLLS & SURVEYS
   ============================================= */
.sp-poll-widget {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 16px 12px;
    box-shadow: var(--shadow-sm);
}

.sp-poll-question {
    font-size: 17px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.4;
}

.sp-poll-option {
    margin-bottom: 12px;
}

.sp-poll-option input[type="radio"] {
    display: none;
}

.sp-poll-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--light-gray);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.sp-poll-option input:checked + .sp-poll-label {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.sp-poll-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.sp-poll-option input:checked + .sp-poll-label .sp-poll-radio {
    border-color: white;
}

.sp-poll-option input:checked + .sp-poll-label .sp-poll-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

.sp-poll-text {
    font-size: 14px;
    font-weight: 600;
}

.sp-poll-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius);
    margin-top: 16px;
}

.sp-poll-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =============================================
   LIVE TV / STREAMING
   ============================================= */
.sp-live-tv {
    position: relative;
    background: black;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 16px 12px;
    box-shadow: var(--shadow-lg);
}

.sp-live-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(211,47,47,0.7); }
    50% { box-shadow: 0 0 0 8px rgba(211,47,47,0); }
}

.sp-live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.sp-live-video {
    width: 100%;
    aspect-ratio: 16/9;
    background: #1a1a1a;
}

.sp-live-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sp-live-info h3 {
    color: white;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.sp-live-viewers {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}

/* =============================================
   NOTIFICATION POPUP
   ============================================= */
.sp-notification-popup {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 320px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sp-notification-popup.show {
    transform: translateX(0);
}

.sp-notif-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sp-notif-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.sp-notif-text h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.sp-notif-text p {
    font-size: 13px;
    color: var(--gray);
}

.sp-notif-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.sp-notif-btn {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.sp-notif-allow {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.sp-notif-later {
    background: var(--light-gray);
    color: var(--gray);
}

/* =============================================
   FLOATING WHATSAPP BUTTON
   ============================================= */
.sp-whatsapp-float {
    position: fixed;
    bottom: 80px;
    left: 16px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--wa-green), #1ea952);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    z-index: 9999;
    animation: float-bounce 3s infinite;
}

@keyframes float-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.sp-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}

/* =============================================
   BOTTOM MOBILE NAVIGATION
   ============================================= */
.sp-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    z-index: 9998;
    padding: 6px 0 8px;
}

.sp-bottom-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--gray);
    text-decoration: none;
    padding: 6px 0;
    position: relative;
}

.sp-bottom-item.active,
.sp-bottom-item:hover {
    color: var(--primary);
}

.sp-bottom-icon {
    font-size: 22px;
    display: block;
    transition: var(--transition);
}

.sp-bottom-item.active .sp-bottom-icon {
    transform: scale(1.15);
}

.sp-bottom-label {
    font-size: 10px;
    font-weight: 700;
    display: block;
}

.sp-bottom-badge {
    position: absolute;
    top: 2px;
    right: 50%;
    margin-right: -20px;
    background: var(--primary);
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* =============================================
   FOOTER
   ============================================= */
.sp-footer {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: white;
    padding: 32px 16px 24px;
    margin-top: 32px;
}

.sp-footer-grid {
    display: grid;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.sp-footer-col h3 {
    font-size: 16px;
    font-weight: 800;
    color: white;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
    margin-bottom: 16px;
}

.sp-footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sp-footer-logo-text {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sp-footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
}

.sp-footer-apps {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sp-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(211,47,47,0.2), rgba(255,160,0,0.2));
    border: 1px solid rgba(211,47,47,0.4);
    border-radius: var(--radius);
    padding: 10px 16px;
    font-size: 12px;
    color: white;
    font-weight: 700;
}

.sp-app-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.sp-footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sp-footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.sp-footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.sp-footer-social {
    display: flex;
    gap: 10px;
}

.sp-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.sp-social-btn.fb {
    background: #1877f2;
}

.sp-social-btn.tw {
    background: #000;
}

.sp-social-btn.wa {
    background: var(--wa-green);
}

.sp-social-btn.yt {
    background: #ff0000;
}

.sp-social-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-md);
}

.sp-footer-bottom {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* =============================================
   INFINITE SCROLL INDICATOR
   ============================================= */
.sp-load-more {
    text-align: center;
    padding: 24px;
}

.sp-load-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spinner-rotate 0.8s linear infinite;
}

@keyframes spinner-rotate {
    to { transform: rotate(360deg); }
}

/* =============================================
   DESKTOP RESPONSIVE
   ============================================= */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }

    .sp-bottom-nav,
    .sp-mobile-nav,
    .sp-whatsapp-float {
        display: none;
    }

    .sp-desktop-nav {
        display: block;
    }

    .sp-header-top {
        padding: 8px 24px;
    }

    .sp-header-main {
        padding: 16px 24px;
    }

    .sp-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 24px;
    }

    .sp-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .sp-swipe-slide {
        height: 400px;
    }

    .sp-swipe-title {
        font-size: 24px;
    }
}

@media (min-width: 1024px) {
    .sp-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .sp-video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =============================================
   BREADCRUMB
   ============================================= */
.sp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    margin: 12px 12px 0;
    border-radius: var(--radius);
    font-size: 13px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.sp-breadcrumb a {
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.sp-breadcrumb a:hover {
    text-decoration: underline;
}

.sp-breadcrumb-sep {
    color: var(--gray);
    font-weight: 700;
}

.sp-breadcrumb-current {
    color: var(--gray);
}

/* =============================================
   CATEGORY PAGE
   ============================================= */
.sp-category-page {
    padding: 0 12px 12px;
}

.sp-category-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    margin: 12px 0 16px;
    color: white;
    box-shadow: var(--shadow-md);
}

.sp-cat-header-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.sp-cat-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.sp-cat-title {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.2;
}

.sp-cat-desc {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 12px;
}

.sp-cat-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    opacity: 0.85;
}

/* Filter Bar */
.sp-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.sp-filter-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

.sp-filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sp-filter-btn {
    padding: 8px 16px;
    background: var(--light-gray);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray);
    transition: var(--transition);
}

.sp-filter-btn:hover {
    background: rgba(211,47,47,0.1);
    color: var(--primary);
}

.sp-filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

/* Category Posts Grid */
.sp-cat-posts-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.sp-cat-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.sp-cat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.sp-cat-card-link {
    display: block;
}

.sp-cat-card-thumb {
    position: relative;
    overflow: hidden;
}

.sp-cat-card-thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.4s;
}

.sp-cat-card:hover .sp-cat-card-thumb img {
    transform: scale(1.08);
}

.sp-cat-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
}

.sp-cat-card-content {
    padding: 16px;
}

.sp-cat-card-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--dark);
    margin-bottom: 10px;
}

.sp-cat-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 12px;
}

.sp-cat-card-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--gray);
}

.sp-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sp-meta-item svg {
    flex-shrink: 0;
}

/* Load More */
.sp-cat-load-more {
    text-align: center;
    padding: 20px 0;
}

.sp-load-more-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.sp-load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.sp-load-spinner svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.sp-no-posts {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.sp-no-posts-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.sp-no-posts h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.sp-no-posts p {
    color: var(--gray);
    font-size: 15px;
}

/* =============================================
   SINGLE POST PAGE
   ============================================= */
.sp-single-post {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    margin: 12px 12px 24px;
    box-shadow: var(--shadow-sm);
}

.sp-post-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.sp-post-cat {
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
}

.sp-post-date,
.sp-post-views {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--gray);
}

.sp-post-title {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 20px;
}

.sp-post-author-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--light-gray);
    border-radius: var(--radius);
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.sp-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.sp-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-author-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

.sp-author-role {
    font-size: 12px;
    color: var(--gray);
}

/* Share Buttons */
.sp-share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sp-share-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
}

.sp-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: white;
}

.sp-share-whatsapp {
    background: var(--wa-green);
}

.sp-share-telegram {
    background: #0088cc;
}

.sp-share-facebook {
    background: #1877f2;
}

.sp-share-x {
    background: #000;
}

.sp-share-copy {
    background: var(--gray);
}

.sp-share-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.sp-share-mobile {
    display: none;
}

.sp-post-featured-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.sp-post-featured-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.sp-post-content {
    font-size: 17px;
    line-height: 1.8;
    color: #2a2a2a;
}

.sp-post-content p {
    margin-bottom: 18px;
}

.sp-post-content h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 28px 0 14px;
    color: var(--dark);
}

.sp-post-content h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 24px 0 12px;
}

.sp-post-tags {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 2px solid var(--border);
}

.sp-tags-label {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.sp-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-tag {
    display: inline-block;
    background: var(--light-gray);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
    transition: var(--transition);
}

.sp-tag:hover {
    background: var(--primary);
    color: white;
}

/* Related Posts */
.sp-related-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 3px solid var(--border);
}

.sp-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 20px;
}

.sp-heading-icon {
    font-size: 26px;
}

.sp-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.sp-related-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: block;
}

.sp-related-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.sp-related-thumb {
    position: relative;
    overflow: hidden;
}

.sp-related-thumb img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.4s;
}

.sp-related-card:hover .sp-related-thumb img {
    transform: scale(1.08);
}

.sp-related-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.sp-related-content {
    padding: 12px;
}

.sp-related-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sp-related-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--gray);
}

/* =============================================
   FLOATING SHARE BAR (Desktop)
   ============================================= */
.sp-floating-share {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(-100px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sp-floating-share.sp-visible {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}

.sp-float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.sp-float-whatsapp {
    background: var(--wa-green);
}

.sp-float-telegram {
    background: #0088cc;
}

.sp-float-facebook {
    background: #1877f2;
}

.sp-float-x {
    background: #000;
}

.sp-float-copy {
    background: var(--gray);
}

.sp-float-btn:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-lg);
}

/* =============================================
   MOBILE STICKY SHARE BAR
   ============================================= */
.sp-mobile-share-bar {
    display: none;
    position: fixed;
    bottom: 65px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
    padding: 10px;
    z-index: 9997;
    justify-content: space-around;
    align-items: center;
}

.sp-mobile-share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.sp-mob-share-whatsapp {
    background: var(--wa-green);
}

.sp-mob-share-telegram {
    background: #0088cc;
}

.sp-mob-share-facebook {
    background: #1877f2;
}

.sp-mob-share-more {
    background: var(--gray);
}

.sp-mobile-share-btn:hover {
    transform: translateY(-3px);
}

/* Share Modal */
.sp-share-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    animation: fadeIn 0.3s;
}

.sp-share-modal-content {
    background: white;
    width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 20px;
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.sp-share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.sp-share-modal-header h3 {
    font-size: 18px;
    font-weight: 800;
}

.sp-share-modal-header button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light-gray);
    font-size: 24px;
    line-height: 1;
}

.sp-share-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sp-modal-share-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--light-gray);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
}

.sp-modal-share-btn:hover {
    background: var(--primary);
    color: white;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 767px) {
    .sp-share-desktop {
        display: none !important;
    }
    
    .sp-mobile-share-bar {
        display: flex;
    }
    
    .sp-floating-share {
        display: none;
    }
    
    .sp-post-title {
        font-size: 22px;
    }
    
    .sp-cat-title {
        font-size: 22px;
    }
}

@media (min-width: 768px) {
    .sp-cat-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sp-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sp-single-post {
        padding: 32px 40px;
        margin: 16px 24px 32px;
    }
    
    .sp-post-title {
        font-size: 32px;
    }
    
    .sp-category-page {
        padding: 0 24px 24px;
    }
}

@media (min-width: 1024px) {
    .sp-cat-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .sp-related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.sp-divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

.sp-fade-in {
    animation: fadeIn 0.5s;
}

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