/* Presale Manager Pro - Frontend Styles */

/* Global Resets */
.pmp-presale-listing-page *,
.pmp-single-presale *,
.pmp-submission-form * {
    box-sizing: border-box;
}

/* Responsive Tables */
@media (max-width: 1024px) {
    .pmp-presale-listing-page table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Hover Effects */
.pmp-presale-listing-page table tbody tr {
    transition: background 0.2s ease;
}

.pmp-presale-listing-page table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05) !important;
}

/* Button Hover Effects */
.pmp-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.pmp-presale-listing-page a[style*="View →"]:hover {
    background: rgba(102, 126, 234, 0.3) !important;
    transform: translateX(2px);
}

/* Single Presale Hover Effects */
.pmp-single-presale a[href*="Buy"]:hover,
.pmp-single-presale a[href*="Join"]:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Submission Form Styles */
.pmp-submission-form input:focus,
.pmp-submission-form select:focus,
.pmp-submission-form textarea:focus {
    outline: none;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.pmp-submission-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.pmp-submission-form button[type="submit"]:active {
    transform: translateY(0);
}

/* Package Card Selected State */
.package-card {
    position: relative;
}

input[type="radio"]:checked + .package-card::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #22c55e;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* Loading States */
.pmp-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Badge Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pmp-presale-listing-page [style*="ACTIVE"] {
    animation: pulse 2s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pmp-presale-listing-page h1 {
        font-size: 24px !important;
    }
    
    .pmp-presale-listing-page [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    .pmp-single-presale [style*="grid-template-columns: 1fr 300px"] {
        grid-template-columns: 1fr !important;
    }
    
    .pmp-single-presale [style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    .pmp-submission-form [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* Scrollbar Styling for Dark Theme */
.pmp-presale-listing-page::-webkit-scrollbar,
.pmp-single-presale::-webkit-scrollbar,
.pmp-submission-form::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.pmp-presale-listing-page::-webkit-scrollbar-track,
.pmp-single-presale::-webkit-scrollbar-track,
.pmp-submission-form::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.pmp-presale-listing-page::-webkit-scrollbar-thumb,
.pmp-single-presale::-webkit-scrollbar-thumb,
.pmp-submission-form::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 5px;
}

.pmp-presale-listing-page::-webkit-scrollbar-thumb:hover,
.pmp-single-presale::-webkit-scrollbar-thumb:hover,
.pmp-submission-form::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}
