/* WP Ticket Win - Frontend Styles */

/* Competition Display */
.twp-competition-display {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.twp-competition-header {
    text-align: center;
    margin-bottom: 40px;
}

.twp-prize-title {
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.twp-competition-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.twp-prize-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}



.twp-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.twp-sold-percentage {
    color: #28a745;
}

.twp-progress-bar {
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
}

.twp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s ease;
}

/* Countdown Timer */
.twp-countdown {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.twp-countdown-item {
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    min-width: 80px;
}

.twp-countdown-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #212529;
}

.twp-countdown-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Prize Features */
.twp-prize-features {
    margin: 30px 0;
}

.twp-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.twp-feature-icon {
    color: #28a745;
    font-weight: 700;
}

/* Competition Info */
.twp-competition-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.twp-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.twp-info-icon {
    font-size: 24px;
}

.twp-info-content {
    display: flex;
    flex-direction: column;
}

.twp-info-label {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
}

.twp-info-value {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
}

/* Enter Button */
.twp-enter-button-wrap {
    margin: 30px 0;
}

.twp-enter-button {
    display: block;
    width: 100%;
    padding: 20px;
    background: #000;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    border-radius: 5px;
    transition: background 0.3s;
}

.twp-enter-button:hover {
    background: #333;
    color: #fff;
}

/* Instant Prizes */
.twp-instant-prizes-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
}

.twp-section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.twp-prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.twp-prize-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.twp-prize-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.twp-prize-card .twp-prize-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.twp-prize-info {
    padding: 20px;
    text-align: center;
}

.twp-prize-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.twp-prize-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 10px 0;
}

.twp-status-available {
    background: #d4edda;
    color: #155724;
}

.twp-status-unavailable {
    background: #f8d7da;
    color: #721c24;
}

.twp-prize-remaining {
    font-size: 14px;
    color: #6c757d;
    margin: 10px 0;
}

.twp-prize-details-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

/* Ticket Selector */
.twp-ticket-selector {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Steps */
.twp-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px 0;
}

.twp-step {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.twp-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 1px;
    background: #dee2e6;
}

.twp-step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.twp-step-active .twp-step-number {
    background: #000;
    color: #fff;
}

.twp-step-label {
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    white-space: nowrap;
}

.twp-step-active .twp-step-label {
    color: #000;
    font-weight: 600;
}

.twp-selector-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Bundles Grid */
.twp-bundles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.twp-bundle-card {
    position: relative;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 25px 20px 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.twp-bundle-card:hover,
.twp-bundle-card.twp-selected {
    border-color: #000;
    background: #fff;
}

.twp-best-value {
    border-color: #e9ecef;
}

.twp-best-value-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 80px 80px 0;
    border-color: transparent #DC143C transparent transparent;
    z-index: 10;
}

.twp-best-value-ribbon::after {
    content: 'BEST VALUE';
    position: absolute;
    top: 29px;
    right: -74px;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transform: rotate(45deg);
    white-space: nowrap;
    line-height: 1;
}

.twp-bundle-quantity {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.twp-bundle-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    margin: 5px 0 0px 0;
}

.twp-bundle-price {
    font-size: 24px;
    font-weight: 700;
}

.twp-bundle-save {
    background: #FDD835;
    color: #000;
    padding: 8px 15px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    display: block;
    margin-top: auto;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Custom Quantity */
.twp-custom-quantity {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 0;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.twp-qty-btn {
    width: 40px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    line-height: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border-right: 1px solid #e9ecef;
}

.twp-qty-btn.twp-qty-plus {
    border-right: none;
    border-left: 1px solid #e9ecef;
}

.twp-qty-btn:hover {
    background: #f8f9fa;
}

.twp-qty-display {
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.twp-qty-number {
    margin-right: 5px;
}

.twp-qty-input {
    display: none;
}

/* Odds & Total */
.twp-odds-display,
.twp-total-price {
    text-align: left;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.twp-total-price {
    text-align: right;
}

.twp-odds-label,
.twp-total-label {
    font-weight: 600;
    margin-right: 5px;
    color: #212529;
}

.twp-odds-value,
.twp-total-value {
    font-weight: 700;
    font-size: 20px;
    color: #212529;
}

/* Continue Button */
.twp-continue-btn {
    flex: 1;
    padding: 15px 30px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.twp-continue-btn:hover {
    background: #333;
}

/* Action Row - Button + Quantity Selector */
.twp-action-row {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 30px 0 20px 0;
}

/* Bottom Info Row - Odds + Total Price */
.twp-bottom-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.twp-disclaimer {
    text-align: center;
    font-size: 11px;
    color: #6c757d;
    margin-top: 15px;
    font-style: italic;
}

/* Skill Challenge */
.twp-skill-challenge {
    max-width: 900px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.twp-skill-question-title {
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin: 0 0 40px 0;
    color: #212529;
}

/* Two Column Layout */
.twp-skill-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.twp-skill-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
}

.twp-skill-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.twp-skill-answers-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.twp-answer-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.twp-answer-option {
    display: block;
    position: relative;
    cursor: pointer;
}

.twp-answer-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.twp-answer-text {
    display: block;
    padding: 0 10px;
    transition: all 0.3s;
    text-align: center;
}

.twp-answer-option:hover .twp-answer-text {
    border-color: #000;
    background: #f8f9fa;
}

.twp-answer-option input[type="radio"]:checked+.twp-answer-text {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    font-weight: 600;
}

/* Warning Message at Bottom */
.twp-skill-warning-bottom {
    text-align: center;
    margin: 30px 0;
}

.twp-warning-title {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.twp-warning-text {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

/* Action Buttons */
.twp-skill-challenge-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.twp-skill-back-btn,
.twp-skill-continue-btn {
    padding: 18px 30px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.twp-skill-back-btn {
    background: #fff;
    color: #212529;
    border: 2px solid #dee2e6;
}

.twp-skill-back-btn:hover {
    background: #f8f9fa;
    border-color: #000;
}

.twp-skill-continue-btn {
    background: #212529;
    color: #fff;
}

.twp-skill-continue-btn:hover:not(:disabled) {
    background: #000;
}

.twp-skill-continue-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .twp-competition-content {
        grid-template-columns: 1fr;
    }

    .twp-bundles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .twp-competition-info {
        grid-template-columns: 1fr;
    }

    .twp-countdown {
        flex-wrap: wrap;
    }
}