/*
Theme Name: Riya Kumari Theme V3
Theme URI: https://riyakumari.online
Author: Saif Ullah
Author URI: https://riyakumari.online
Description: Custom Live Video Streaming WordPress Theme for Riya Kumari
Version: 3.0.0
Text Domain: riyakumari-theme
*/

:root {
    --bg-dark: #010140;
    --card-bg: #02025e;
    --card-border: #0030ad;
    --accent-blue: #0055ff;
    --accent-blue-hover: #1a6dff;
    --btn-blue: #0050e6;
    --tag-blue: #2563eb;
    --accent-gradient: linear-gradient(135deg, #0055ff 0%, #0036cc 100%);
    --accent-pink: #ff2b56;
    --text-main: #ffffff;
    --text-muted: #8caaff;
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 14px;
    line-height: 1.5;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(0, 85, 255, 0.15) 0%, transparent 70%),
        radial-gradient(circle at 100% 100%, rgba(0, 50, 200, 0.12) 0%, transparent 60%);
}

.app-container {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Header Bar */
.stream-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px;
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.live-badge {
    background-color: var(--accent-pink);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: pulse 1.4s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

.viewer-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

.eye-icon {
    stroke: var(--text-muted);
}

/* Main Content Layout */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

/* Video Card Area */
.video-card-container {
    width: 100%;
}

.video-preview-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--card-bg);
    border-radius: 18px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 80, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.video-preview-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 85, 255, 0.6);
}

.video-thumbnail-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.78) contrast(1.05);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,50,0.2) 0%, rgba(0,0,80,0.7) 100%);
    z-index: 1;
}

/* Center Red Play Button with Subtle Pulse Animation */
.center-play-btn {
    position: relative;
    z-index: 2;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff2b56 0%, #ff1744 100%);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 25px rgba(255, 43, 86, 0.7);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: redPlayPulse 2.2s infinite ease-in-out;
}

@keyframes redPlayPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 43, 86, 0.7);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 0 0 16px rgba(255, 43, 86, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 43, 86, 0);
    }
}

.center-play-btn:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 0 35px rgba(255, 43, 86, 0.9);
}

/* Player Controls & Timeline Overlay */
.player-controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
}

/* Seek Timeline Bar */
.timeline-progress-bar {
    position: relative;
    width: 100%;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: height 0.15s ease;
}

.timeline-progress-bar:hover {
    height: 7px;
}

.timeline-played {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 8%;
    background-color: #0055ff;
    transition: width 0.1s linear;
}

.timeline-handle {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #0055ff;
    box-shadow: 0 0 6px rgba(0, 85, 255, 0.8);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.timeline-progress-bar:hover .timeline-handle {
    opacity: 1;
}

/* Controls Buttons Row */
.controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px 10px;
    gap: 8px;
}

.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ctrl-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.ctrl-btn:hover {
    opacity: 0.85;
    transform: scale(1.08);
}

/* Volume Slider Box */
.volume-slider-box {
    width: 44px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.volume-fill {
    height: 100%;
    width: 70%;
    background-color: #0055ff;
}

/* Pause Pill Button */
.pause-pill-btn {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 3px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pause-pill-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Time Counter Text */
.time-counter-text {
    font-size: 0.86rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
    font-family: inherit;
}

/* Action Toolbar Card */
.action-toolbar-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 80, 0.5);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
    background-color: var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.action-btn {
    background-color: var(--btn-blue);
    color: #ffffff;
    border: none;
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.action-btn:hover {
    background-color: var(--accent-blue-hover);
}

.action-btn:active {
    transform: scale(0.96);
}

.action-icon {
    fill: currentColor;
}

/* Tags Container */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-top: 2px;
}

.tag-pill {
    background-color: var(--tag-blue);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tag-pill:hover {
    background-color: var(--accent-blue-hover);
}

.tag-edit-btn {
    background: transparent;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 2px 6px;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.tag-edit-btn:hover {
    opacity: 1;
}

/* Thread Card */
.thread-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 80, 0.5);
}

.thread-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    letter-spacing: -0.2px;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-item.trending {
    color: #ff9f43;
    font-weight: 600;
}

.action-stat {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.action-stat:hover {
    color: #ffffff;
}

/* CTA Button */
.cta-button {
    width: 100%;
    height: 52px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 85, 255, 0.45);
    transition: all 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 85, 255, 0.6);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-icon {
    font-size: 0.9rem;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 40, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 70, 0.7);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
}

.modal-close:hover {
    color: #ffffff;
}

/* Video Modal */
.video-modal-content {
    max-width: 720px;
    padding: 16px;
}

.video-player-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-player-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    margin-top: 14px;
}

.modal-info h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Share Modal */
.share-input-box {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.share-input-box input {
    flex: 1;
    background: #010130;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
}

.share-input-box button {
    background: var(--accent-blue);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-weight: 700;
    padding: 0 18px;
    cursor: pointer;
    font-family: inherit;
}

.toast-hidden {
    display: none;
    font-size: 0.8rem;
    color: #60a5fa;
    margin-top: 8px;
}

.toast-show {
    display: block;
}

/* Responsive tweaks */
@media (max-width: 480px) {
    body {
        padding: 10px 8px;
    }
    .thread-title {
        font-size: 1.1rem;
    }
    .cta-button {
        font-size: 0.92rem;
    }
    .action-btn {
        font-size: 0.7rem;
        padding: 8px 2px;
    }
}

/* Pagination & Navigation Section */
.pagination-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 12px 0 20px;
}

.pagination-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    width: 100%;
}

.page-num {
    width: 36px;
    height: 36px;
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.15s ease;
}

.page-num:hover {
    border-color: var(--accent-blue);
    background-color: var(--accent-blue-hover);
}

.page-num.active {
    background-color: var(--accent-blue);
    border: 2px solid #ffffff;
    box-shadow: 0 0 10px rgba(0, 85, 255, 0.6);
}

.page-num.next-btn {
    width: auto;
    padding: 0 14px;
}

.footer-seo-links {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.3px;
    opacity: 0.85;
}

.footer-seo-links span {
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-seo-links span:hover {
    color: #ffffff;
    text-decoration: underline;
}
