/*
Theme Name: FameGrid Ultra
Theme URI: https://example.com/famegrid-ultra
Author: FameGrid
Author URI: https://example.com
Description: A modern WordPress theme for FameGrid Ultra, a premium AI image generation tool.
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: famegrid
Tags: black, purple, one-column, two-columns, responsive, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, e-commerce
*/

/* Base styles for dark theme */
body {
    background-color: #121827;
    color: #e5e7eb;
    font-family: 'Inter', sans-serif;
    transition: padding-top 0.3s ease-in-out;
}

/* Hero section height adjustment */
#hero {
    height: 90vh !important;
    min-height: 90vh !important;
}

#hero .absolute.right-0.top-0 {
    height: 100% !important;
}

#hero img.w-full.h-full.object-cover {
    height: 100% !important;
    object-position: center;
}

/* WooCommerce blocks compatibility */
/* All checkout-specific styling has been removed to allow block checkout to render correctly */ 

/* WooCommerce Order Received Page Styling */
.woocommerce-order {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #1a202c;
    border-radius: 12px;
    border: 1px solid #2d3748;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.woocommerce-notice--success {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #10b981;
    text-align: center;
}

.woocommerce-order-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0 0 40px;
    padding: 20px;
    list-style: none;
    background-color: #222a3a;
    border-radius: 8px;
    border: 1px solid #374151;
}

.woocommerce-order-overview li {
    flex: 1 1 200px;
    padding: 10px;
    border-right: 1px solid #374151;
}

.woocommerce-order-overview li:last-child {
    border-right: none;
}

.woocommerce-order-overview li strong {
    display: block;
    margin-top: 5px;
    color: #9f7aea;
    font-weight: 600;
}

.woocommerce h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 20px;
    color: #e5e7eb;
    padding-bottom: 10px;
    border-bottom: 1px solid #374151;
}

.woocommerce-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background-color: #1a202c;
    border-radius: 8px;
    overflow: hidden;
}

.woocommerce-table th,
.woocommerce-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #2d3748;
}

.woocommerce-table thead th {
    background-color: #222a3a;
    color: #e5e7eb;
    font-weight: 600;
}

.woocommerce-table tfoot {
    background-color: #222a3a;
}

.woocommerce-table tfoot th {
    font-weight: 600;
}

.woocommerce-MyAccount-downloads-file.button.alt {
    display: inline-block;
    background-color: #8b5cf6;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.woocommerce-MyAccount-downloads-file.button.alt:hover {
    background-color: #7c3aed;
}

.woocommerce-Price-amount {
    color: #9f7aea;
    font-weight: 600;
}

.woocommerce-customer-details address {
    padding: 20px;
    background-color: #222a3a;
    border-radius: 8px;
    border: 1px solid #374151;
    line-height: 1.6;
}

.woocommerce-customer-details--email {
    margin-top: 10px;
    color: #9f7aea;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .woocommerce-order {
        padding: 20px;
        margin: 20px;
    }
    
    .woocommerce-order-overview {
        flex-direction: column;
        gap: 10px;
    }
    
    .woocommerce-order-overview li {
        border-right: none;
        border-bottom: 1px solid #374151;
        padding-bottom: 15px;
    }
    
    .woocommerce-order-overview li:last-child {
        border-bottom: none;
    }
    
    .woocommerce-table th,
    .woocommerce-table td {
        padding: 10px;
    }
} 

/* Video Container Styling */
.video-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.gallery-item.video-container {
    background-color: #000;
    aspect-ratio: 1/1;
}

/* Ensure videos in gallery have proper sizing */
.gallery-item video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero video styling */
#hero .video-container {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

/* Gallery videos */
.gallery-item video,
.use-case-media video,
#hero .video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* For use case section videos */
.use-case-media {
    width: 100%;
    height: 100%;
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 1rem;
    overflow: hidden;
}

/* Gallery grid items with videos */
.gallery-item {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 0.75rem;
}

/* Autoplay videos when in viewport using JavaScript, hide controls */
video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-panel {
    display: none !important;
}

video::-webkit-media-controls-play-button {
    display: none !important;
}

video::-webkit-media-controls-timeline {
    display: none !important;
}

video::-webkit-media-controls-current-time-display {
    display: none !important;
}

video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

video::-webkit-media-controls-mute-button {
    display: none !important;
}

video::-webkit-media-controls-volume-slider {
    display: none !important;
}

video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

/* Firefox */
video::-moz-media-controls {
    display: none !important;
}

/* Generic */
video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Sale Banner and Countdown Styling */
#sale-banner {
    position: fixed;
    top: 60px; /* Positioned right below the header */
    left: 0;
    width: 100%;
    z-index: 40; /* Below header but above content */
    background: linear-gradient(90deg, var(--sale-bg-color), var(--sale-bg-color-alt));
    animation: pulseBackground 4s infinite alternate;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-size: 200% 100%;
    position: relative; /* For close button */
    transition: top 0.3s ease-in-out;
}

#close-sale-banner {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

#close-sale-banner:hover {
    background: rgba(0, 0, 0, 0.4);
}

body.admin-bar #sale-banner {
    top: 92px; /* Adjusted for WordPress admin bar */
}

body.has-sale-banner #hero {
    padding-top: 40px; /* Add space at top when sale banner is present */
}

/* Add padding to the body when sale banner is active */
body.has-sale-banner {
    padding-top: 100px; /* Header (60px) + Sale Banner (approx 40px) */
}

@keyframes pulseBackground {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

#sale-countdown {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background-color: rgba(0, 0, 0, 0.3);
    display: inline-block;
    min-width: 6rem;
    text-align: center;
}

/* Sale price and badge styling */
.pricing-sale-badge {
    position: absolute;
    top: -15px;
    right: -60px;
    transform: rotate(45deg);
    background-color: #ffd100;
    color: #111827;
    padding: 0.25rem 4rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.pricing-original-price {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Price flash animation for sales */
@keyframes priceFlash {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.price-flash {
    animation: priceFlash 2s infinite;
    display: inline-block;
}

/* CTA countdown styling */
#cta-countdown {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    margin-left: 0.25rem;
    font-size: 0.9rem;
    color: #ffd100;
}

/* Tailwind Placeholders (add custom styles if needed) */
.bg-gradient-to-r {
    /* Custom gradient fallback if needed */
}

.bg-gradient-to-b {
    /* Custom gradient fallback if needed */
}

/* Ensure WooCommerce elements are styled */
/* Add specific WooCommerce overrides here if needed */

.woocommerce ul.products li.product .woocommerce-loop-category__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h3 {
    color: white; /* Example override */
}

/* Pricing Section Specific Styles */
.pricing-sale-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #e11d48; /* Tailwind red-600 */
    color: white;
    font-size: 0.75rem; 
    font-weight: 700; 
    padding: 0.25rem 0.75rem; 
    border-radius: 9999px; 
    text-transform: uppercase;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.price-flash {
    /* Add animation or emphasis if desired */
}

.pricing-original-price {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.7);
} 