/**
 * Voucher Detail Styles
 * File: assets/css/voucher-detail.css
 */

/* Product Type Selector Styles */
.product-type-selector {
    margin-bottom: 30px;
    text-align: left;
}

.selector-buttons {
    display: inline-flex;
    background: linear-gradient(135deg, #2A1B5C, #3A2B6C);
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.selector-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    background: transparent;
    border-radius: 46px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.selector-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.selector-btn.active {
    background: linear-gradient(135deg, #6B46C1, #8B5FE6);
    color: white;
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
    transform: translateY(-2px);
}

.selector-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 46px;
    pointer-events: none;
}

.selector-icon {
    font-size: 18px;
    opacity: 0.9;
}

.selector-btn.active .selector-icon {
    opacity: 1;
}

/* Input Fields Section Styles */
.input-fields-section {
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 20px;
    background: #3a1b66;
    border-radius: 8px;
}

.input-field-group {
    margin-bottom: 20px;
}

.input-field-group:last-child {
    margin-bottom: 0;
}

.input-field-group label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.required {
    color: #dc3545;
    margin-left: 2px;
}

.input-field-group input,
.input-field-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #f8f9fa1f;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: #4c2786;
    color: #fff;
    box-sizing: border-box;
}

.input-field-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.input-field-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.input-field-group select option {
    background: #4c2786;
    color: white;
}

.input-field-group input:focus,
.input-field-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Card Styling */
.denomination-card {
    position: relative;
    transition: all 0.3s ease;
    overflow: visible;
    margin-top: 15px;
    border-radius: 8px;
    width: 100% !important;
    height: auto !important;
    min-height: 120px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
}

/* Custom Voucher Card Styling */
.denomination-card.custom-voucher-card {
    width: 120% !important;
    max-width: 200px !important;
    margin: 15px auto !important;
}

.denomination-card-inner {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px !important;
}

.denomination-price {
    padding: 10px !important;
    text-align: center !important;
    margin-top: auto !important;
}

.card-price {
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

/* Popular card styling */
.popular-card {
    border: 3px solid transparent !important;
    background: linear-gradient(#3A1B66, #3A1B66) padding-box, 
               linear-gradient(135deg,rgb(116, 96, 204), #FF8A65, #FFA726) border-box;
    background-size: 100% 100%, 200% 200%;
    box-shadow: 0 4px 12px rgba(253, 196, 0, 0.2);
    transform: scale(1.02);
    border-radius: 8px;
    animation: gradientBorderShift 3s ease-in-out infinite, popularPulse 2s ease-in-out infinite;
}

.popular-card:hover {
    transform: scale(1.05);
}

@keyframes gradientBorderShift {
    0%, 100% {
        background-size: 100% 100%, 200% 200%;
        background-position: 0 0, 0% 50%;
    }
    50% {
        background-size: 100% 100%, 200% 200%;
        background-position: 0 0, 100% 50%;
    }
}

@keyframes popularPulse {
    0% { box-shadow: 0 4px 12px rgba(253, 196, 0, 0.2); }
    50% { box-shadow: 0 6px 16px rgba(253, 196, 0, 0.3); }
    100% { box-shadow: 0 4px 12px rgba(253, 196, 0, 0.2); }
}



.popular-badge span {
    display: block;
    color: #160A41;
}

@keyframes badgeBounce {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    50% { transform: rotate(-5deg) scale(1.05); }
}

@keyframes discountBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Price container for popular cards */
.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 4px;
}

.discounted-price {
    color: #2ed573 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}

.original-price {
    color: #999;
    font-size: 11px;
    text-decoration: line-through;
    margin: 0;
    font-weight: 400;
    opacity: 0.7;
}

/* Grid layouts */
#voucher-cards,
#gamepoint-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 15px;
    width: 100%;
}

#gamepoint-cards[style*="display: none"] {
    display: none !important;
}

/* Tooltip styles */
.demo-container {
    position: relative;
    display: inline-block;
}
.winner-announcement .info-icon{
    top: 4px;
}
/* .custom-info-container .custom-tooltip {
    max-width: 550px;
    
} */
.trigger-element {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    line-height: 1;
    background: #3a1b66;
    margin-top: 30px;
}

.trigger-element:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.info-icon {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.info-icon::before {
    content: 'i';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-style: italic;
    font-weight: bold;
    font-size: 12px;
}

.tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 12px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(-50%) translateY(-10px) scale(0.8);
}

.tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.tooltip-content {
    background: #160A41;
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 20px;
    min-width: 280px;
    /* max-width: 320px; */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tooltip-arrow {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(0, 0, 0, 0.92);
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
}

.tooltip-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.game-name {
    color: #a0a0a0;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.instruction-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instruction-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.5;
}

.instruction-item:last-child {
    margin-bottom: 0;
}

.step-number {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.highlight {
    color: #74b9ff;
    font-weight: 600;
}

.player-id-note {
    background: rgba(116, 185, 255, 0.1);
    border: 1px solid rgba(116, 185, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
    color: #74b9ff;
    font-size: 13px;
    line-height: 1.4;
}

/* Custom Tooltip Styles */
.winner-announcement {
    color: #ff4757;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    margin-bottom: 15px;
}

.custom-info-container,
.custom-howto-container {
    margin: 0;
    flex: 0 0 auto;
}

.custom-info-trigger,
.custom-howto-trigger {
    font-size: 13px;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.custom-info-trigger {
    background: rgba(107, 70, 193, 0.1);
    border: 1px solid rgba(107, 70, 193, 0.3);
    color: #ffffff;
}

.custom-info-trigger:hover {
    background: rgba(107, 70, 193, 0.2);
    border-color: rgba(107, 70, 193, 0.5);
    color: #8B5FE6;
}

.custom-tooltip {
    min-width: 280px;
    max-width: 350px;
}

.custom-tooltip .tooltip-content {
    padding: 20px;
}

.custom-tooltip .tooltip-header {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-tooltip-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
}

/* Tooltips Wrapper */
.custom-tooltips-wrapper {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
    align-items: flex-start;
    margin: 20px 0;
}

/* How-to Tooltip Styles */
.custom-howto-trigger {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.custom-howto-trigger:hover {
    background: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.5);
    color: #34ce57;
}

.help-icon {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #28a745, #34ce57);
    border-radius: 50%;
    position: relative;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    margin: 0;
}

.help-icon::before {
    content: '?';
    position: absolute;
    top: 53%;
    left: 53%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 11px;
    color: white;
}

.faq-icon {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #FDC400, #ffcc00);
    border-radius: 50%;
    position: relative;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(253, 196, 0, 0.3);
    margin: 0;
}

.faq-icon::before {
    content: '?';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 11px;
    color: white;
}

.custom-faq-trigger {
    background: rgba(253, 196, 0, 0.1);
    border: 2px solid rgba(253, 196, 0, 0.3);
    color: #FDC400;
}

.custom-faq-trigger:hover {
    background: rgba(253, 196, 0, 0.2);
    border-color: rgba(253, 196, 0, 0.5);
    transform: translateY(-2px);
}

.custom-faq-tooltip {
    min-width: 500px;
    max-width: 600px;
}
.custom-howto-tooltip {
    min-width: 500px;
    max-width: 600px;
}

.custom-howto-tooltip .tooltip-content {
    padding: 25px;
}

.howto-steps, .terms-list {
    margin: 15px 0;
    padding-left: 20px;
}

.howto-steps li, .terms-list li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.terms-section {
    margin-top: 20px;
    padding-top: 15px;
}

.terms-section h4 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    /* .custom-tooltips-wrapper {
        flex-direction: column;
        gap: 10px;
    } */

    .custom-howto-tooltip {
        min-width: 300px;
        max-width: 350px;
    }
    #voucher-form > div.custom-product-info-section > div.custom-tooltips-wrapper > div.demo-container.custom-info-container > div.tooltip.custom-tooltip.show{
        left: 138%;
    }
}



/* US Region Styles */
.us-region-indicator {
    color: #ff6b35;
    font-size: 0.8em;
    font-weight: 600;
    margin-left: 8px;
    background: rgba(255, 107, 53, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.us-region-disclaimer {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
}

.disclaimer-content {
    color: #ff6b35;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}

.disclaimer-content strong {
    color: #e55a2b;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .denomination-cards-grid,
    #voucher-cards,
    #gamepoint-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .denomination-cards-grid,
    #voucher-cards,
    #gamepoint-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px 10px;
    }
    
    .selector-btn {
        padding: 12px 20px;
        font-size: 14px;
        gap: 8px;
    }
    
    .selector-icon {
        font-size: 16px;
    }
    
    .denomination-card {
        margin-top: 12px;
    }
    
    .popular-card {
        transform: scale(1.01);
    }
    
    .popular-card:hover {
        transform: scale(1.03);
    }
    
    .tooltip-content {
        min-width: 260px;
        max-width: 280px;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .denomination-cards-grid,
    #voucher-cards,
    #gamepoint-cards {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }
    
    .selector-buttons {
        width: 100%;
    }
    
    .selector-btn {
        flex: 1;
        justify-content: center;
        padding: 12px 16px;
    }
    .custom-info-container .custom-tooltip{
        max-width: 400px;
    }
}