/* Grid Layout */
.lty-raffle-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .lty-raffle-products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .lty-raffle-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Product Cards */
.lty-raffle-product {
    position: relative;
    background: var(--e-global-color-text);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06); 
    background: linear-gradient(to bottom, rgba(13, 24, 29, 0.95), rgba(13, 24, 29, 1));
}

.lty-raffle-product::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        var(--e-global-color-primary) 0%,
        rgba(251, 206, 1, 0.5) 50%,
        var(--e-global-color-primary) 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lty-raffle-product:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2),
                0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.lty-raffle-product:hover::after {
    opacity: 1;
}

.lty-raffle-product img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.lty-raffle-product:hover img {
    transform: scale(1.08);
}

.lty-raffle-product-name {
    position: relative;
    color: #FFFFFF;
    font-size: 1.1rem;
    padding: 1.5rem;
    text-align: center;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 24, 29, 0.95),
        rgba(13, 24, 29, 1)
    );
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lty-raffle-view-entries-btn {
    display: inline-block;
    background: var(--e-global-color-secondary);
    color: black;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    width: calc(100% - 2rem);
}

.lty-raffle-view-entries-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: var(--e-global-color-secondary);
}

@media (max-width: 768px) {
    .lty-raffle-product-name {
        padding: 1rem;
        gap: 0.75rem;
    }

    .lty-raffle-view-entries-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
        width: calc(100% - 1rem);
    }
}

.lty-raffle-product::before {
    display: none;
}

.lty-raffle-product:hover::before {
    opacity: 1;
}

/* Add shine effect */
@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.lty-raffle-product::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transform: translateX(-100%) rotate(45deg);
    animation: shine 3s infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lty-raffle-product:hover::after {
    opacity: 1;
}

/* Modal Styling */
#lty-raffle-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow-y: auto;
}

#lty-raffle-modal-content {
    position: relative;
    background-color: #1a1a1a;
    margin: 5vh auto;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

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

#lty-raffle-close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1;
}

#lty-raffle-close-modal:hover {
    transform: rotate(90deg);
}

#loadingMessage {
    text-align: center;
    padding: 2rem;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: var(--e-global-color-secondary);
    border-radius: 50%;
    animation: dotPulse 1.4s infinite ease-in-out;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 80%, 100% { 
        transform: scale(0);
    }
    40% { 
        transform: scale(1);
    }
}

#raffleTableContainer {
    margin-top: 1rem;
}

#searchBar {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: none;
    border-radius: 10px;
    background-color: #2a2a2a;
    color: #fff;
    font-size: 1rem;
}

#searchBar::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.raffle-tickets-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    color: #fff;
}

.raffle-tickets-table th {
    background-color: #2a2a2a;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.raffle-tickets-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.raffle-tickets-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Custom Scrollbar */
#lty-raffle-modal::-webkit-scrollbar {
    width: 10px;
}

#lty-raffle-modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

#lty-raffle-modal::-webkit-scrollbar-thumb {
    background: var(--e-global-color-secondary);
    border-radius: 5px;
}

#lty-raffle-modal::-webkit-scrollbar-thumb:hover {
    background: var(--e-global-color-accent);
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    #lty-raffle-modal-content {
        margin: 0;
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
    }

    #lty-raffle-close-modal {
        right: 1rem;
        top: 1rem;
    }

    .raffle-tickets-table th,
    .raffle-tickets-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Cash Alternative Styles */
.single-product .lty-cash-alternative {
    text-align: center !important;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 17px;
    width: 100%;
}

.lty-product-grid {
    text-align: left !important;
    margin-top: 5px;
    width: 100%;
}

.lty-cash-value {
    font-weight: 600;
    margin-left: 5px;
} 