/**
Theme Name: Astra Child
Author: RBD
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

:root {
    --rbd-color-white: #ffffff;
    --rbd-color-white-transparent: rgba(255, 255, 255, 0.25);
    --rbd-color-white-overlay: rgba(255, 255, 255, 0.8);
    --rbd-color-gray-light: #f3f3f3;
    --rbd-color-blue: #3498db;
}

/* Form Styles */
#wpforms-form-1890 {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.wpforms-field-container {
    flex-grow: 1;
}

#wpforms-1890-field_3 {
    max-width: initial;
}

#wpforms-1890-field_3-container {
    padding: 0;
}

#wpforms-submit-1890 {
    height: 56px;
}

/* Video Container Styles */
.video-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 16px;
    width: 100%;
    height: 100%;
}

.video-container iframe {
    width: 100%;
    cursor: pointer;
    height: 100%;
    border: 0;
}

/* Common Overlay Styles */
.video-container::before,
.video-container .interactive-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container::before {
    content: "";
    z-index: 10;
    cursor: pointer;
    background: transparent;
}

.video-container.active::before {
    display: none;
}

.video-container .interactive-overlay {
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--rbd-color-white-transparent);
    transform: scale(1.1);
}

.video-container:not(.active):hover .interactive-overlay,
.video-container.loading .interactive-overlay {
    display: flex;
}

/* Spinner Styles */
.video-container.loading .interactive-overlay .spinner,
.product-type-race .overlay .spinner {
    border: 4px solid var(--rbd-color-gray-light);
    border-top-color: var(--rbd-color-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Product Styles */
.woocommerce-breadcrumb,
body:not(.logged-in) .entry-header {
    display: none;
}

.product-type-race .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rbd-color-white-overlay);
}

.woocommerce-product-gallery .video-container .overlay {
    display: none;
}

.woocommerce-product-gallery .video-container.loading .overlay {
    display: flex;
}

.rbd-loader {
    display: inline-block;
    margin-left: 10px;
    width: 16px;
    height: 16px;
    border: 3px solid #ccc;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.rbd-error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.race-access-info {
    margin-top: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
}
.access-remaining {
    color: #b9d2ff;
    margin: 0;
}
.access-expired {
    color: #e74c3c;
    margin: 0;
}
.race-access-info small {
    color: #6c757d;
}
.access-duration {
    color: #495057;
    margin: 0 0 5px 0;
    font-weight: 500;
}
.access-lifetime {
    color: #28a745;
    margin: 0;
}

/* Secure Streaming Styles */
.race-virtual-wrap {
    position: fixed;
    inset: 0;
    margin: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
}

.race-virtual-iframe {
    position: absolute;
    inset: 0;
    border: 0;
    width: 100%;
    height: 100%;
}

.loading-message {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex-direction: column;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.countdown-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 1000;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.countdown-time {
    font-size: 24px;
    font-weight: bold;
    margin-top: 5px;
}

.countdown-label {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-expired {
    color: #f44336;
    font-size: 16px;
}

/* Page-level adjustments for streaming view (scoped) */
body.vagon-stream-active {
    height: 100%;
    overflow: hidden;
    margin: 0;
}
body.vagon-stream-active .site-header,
body.vagon-stream-active .site-footer {
    display: none !important;
}
body.vagon-stream-active #content,
body.vagon-stream-active .site-content,
body.vagon-stream-active .ast-container {
    padding: 0;
    margin: 0;
    max-width: none;
    width: 100%;
}
.secure-loading-overlay,
.secure-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.secure-loading-spinner {
    text-align: center;
    color: #333;
}

.secure-loading-spinner .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

.secure-loading-spinner p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.secure-error-content {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 300px;
}

.secure-error-content h3 {
    margin: 0 0 10px 0;
    color: #e74c3c;
    font-size: 18px;
}

.secure-error-content p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.secure-retry-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.secure-retry-btn:hover {
    background: #2980b9;
}

.vagon-credit-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #b9d2ff;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.credit-icon {
    font-size: 24px;
}

.credit-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.credit-balance {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.credit-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.vagon-stream-active .vagon-credit-badge {
    top: 46px;
    right: 10px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* My Credits Page Dashboard */
.vagon-credits-dashboard {
    max-width: 800px;
    margin: 0 auto;
}

.credits-balance-card {
    background: #b9d2ff;
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.credits-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.credits-balance-card h2 {
    color: white;
    margin: 0 0 20px 0;
    font-size: 24px;
}

.credits-amount {
    margin: 20px 0;
}

.credits-number {
    font-size: 64px;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.credits-label {
    font-size: 18px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.credits-info {
    margin: 20px 0;
    font-size: 16px;
    opacity: 0.95;
}

.credits-warning {
    background: rgba(255,255,255,0.2);
    padding: 12px 20px;
    border-radius: 6px;
    margin: 20px 0;
    font-weight: 500;
}

.buy-credits-button {
    background: white !important;
    color: #8ea5cf !important;
    padding: 15px 40px !important;
    border-radius: 50px !important;
    font-weight: bold !important;
    border: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    transition: transform 0.2s;
}

.buy-credits-button:hover {
    transform: scale(1.05);
}

.credits-statistics {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

/* Eagle 3D Streaming Styles */
body.eagle-stream-active {
    width: 100vw;
    height: 100vh;
    min-height: -webkit-fill-available;
    font-family: Montserrat, sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Container for SDK video element */
#playerUI {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Loading overlay */
#eagle-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: Montserrat, sans-serif;
}

#eagle-loading-overlay.hidden {
    display: none;
}

.eagle-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: eagle-spin 1s linear infinite;
    margin-bottom: 20px;
}

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

#eagle-loading-message {
    font-size: 18px;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

#eagle-loading-progress {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 10px;
}

/* Credit badge styling for Eagle streams - simple round badge */
#eagle-credit-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    background: #b9d2ff;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    font-family: Montserrat, sans-serif;
}

#eagle-credit-badge .credits-amount {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

#eagle-credit-badge .credits-number {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    color: white;
}

#eagle-credit-badge .credits-label {
    font-size: 11px;
    opacity: 0.9;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#eagle-credit-badge .credits-number.credit-pulse {
    animation: creditPulse 0.5s ease-in-out;
}


.credits-statistics h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-value {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credits-history {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.credits-history h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.shop_table_responsive {
    width: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .vagon-credit-badge {
        top: 10px;
        right: 10px;
        padding: 10px 20px;
    }
    
    .credit-balance {
        font-size: 18px;
    }
    
    .credits-balance-card {
        padding: 30px 20px;
    }
    
    .credits-number {
        font-size: 48px;
    }
}

/* Vagon SDK Credit Tracking Styles */
.credit-deduction-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10001;
    display: none;
    animation: slideInRight 0.3s ease-out;
}

/* Vagon Pinger Styles */
.vagon-pinger-status {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #007cba;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 10000;
    display: none;
    animation: slideInLeft 0.3s ease-out;
}

.vagon-pinger-status.pinging {
    background: #ff9800;
}

.vagon-pinger-status.success {
    background: #4caf50;
}

.vagon-pinger-status.error {
    background: #f44336;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.credit-deduction-notification .notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.credit-deduction-notification .deducted {
    font-weight: bold;
    font-size: 18px;
}

.credit-deduction-notification .remaining {
    font-size: 14px;
    opacity: 0.9;
}

.low-credit-warning {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffc107;
    color: #212529;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10001;
    max-width: 400px;
    text-align: center;
}

.low-credit-warning .warning-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.low-credit-warning .button {
    background: #007bff;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.connection-error-message,
.no-credits-message,
.credit-error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #dc3545;
    color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 10000;
    max-width: 500px;
    text-align: center;
}

.credit-tracking-active {
    color: #28a745;
    font-weight: bold;
}

.credit-tracking-inactive {
    color: #dc3545;
    font-weight: bold;
}

.credit-pulse {
    animation: creditPulse 0.6s ease-in-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes creditPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}