/* 
* Seaside Media Products Section Styles
*/

/* --- Global Variables for Glow Effect--- */
:root {
    --c-1: var(--brand-primary);
    --c-2: var(--brand-secondary);
    --c-3: var(--brand-dark);
    --blur-radius: 2rem;
}

/* --- Custom Property for Gradient Angle Animation --- */
@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: #1a2838;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    color: white;
    overflow: visible;
    z-index: 1;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.product-card h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.price {
    margin: 1rem 0;
}

.old-price {
    color: white;
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.current-price {
    color: var(--brand-default);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.product-description {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Responsive styles for products section */
/* --- Gradient Glow Effect Styles --- */
.products-grid {
    position: relative;
}

.glow-gradient-child {
    position: relative;
}

/* This is the solid background that sits on top of the glow */
.glow-gradient-child::before {
    content: "";
    position: absolute;
    inset: 0; /* Cover the entire card */
    background-color: #1a2838;
    border-radius: inherit;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* This is the glowing gradient that sits behind the background */
.glow-gradient-child::after {
    content: "";
    position: absolute;
    inset: -8px; /* Extend beyond the card to create the halo effect */
    z-index: -2;
    border-radius: 15px; /* Slightly larger radius for the glow */
    background: conic-gradient(
        from var(--gradient-angle), #FB6A2C, #FFA726, #D32F2F, #FFA726, #FB6A2C
    );
    filter: blur(10px);
    opacity: 0;
    animation: rotation-glow 10s linear infinite;
    transition: opacity 0.3s ease;
}

.glow-gradient-child:hover::before,
.glow-gradient-child:hover::after {
    opacity: 1;
}

@keyframes rotation-glow {
    0% {
        --gradient-angle: 0deg;
    }

    100% {
        --gradient-angle: 360deg;
    }
}

/*-----moving gradient on hover for buttons-----*/
.product-card .btn-outline {
    background-image: linear-gradient(to right, #d02925 25%, #f6a946 75%);
    transition: 0.5s;
    background-size: 250% auto;
    background-position: right;
    color: white;
    border: none;
}

.product-card .btn-outline:hover {
    background-position: left;
    color: white;
}

/* Responsive styles for products section */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}
