/* Custom Styles for SizeBonus */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #f59e0b, #d97706);
}

/* Bonus card animations */
.bonus-card {
    transition: all 0.3s ease;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bonus-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Logo section with background */
.bonus-card .logo-section {
    position: relative;
    height: 120px;
    width: 100%;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.bonus-card .logo-section .bg-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Logo image styling */
.bonus-card .logo-section img {
    max-height: 60px;
    max-width: 120px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Bonus info section */
.bonus-card .bonus-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

/* Action section - always at bottom */
.bonus-card .action-section {
    margin-top: auto;
    padding: 1rem;
    flex-shrink: 0;
}

/* Mobile responsive bonus cards */
@media (max-width: 768px) {
    .bonus-card {
        display: flex;
        flex-direction: column;
        height: auto;
        margin-bottom: 1rem;
    }
    
    .bonus-card .logo-section {
        height: 80px;
        width: 100%;
        border-radius: 8px 8px 0 0;
    }
    
    .bonus-card .logo-section img {
        max-height: 60px;
        max-width: 120px;
    }
    
    .bonus-card .bonus-info {
        flex: 1;
        text-align: left;
        padding: 0.75rem;
    }
    
    .bonus-card .bonus-info h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .bonus-card .bonus-amount {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .bonus-card .bonus-info p {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }
    
    .bonus-card .bonus-info .space-y-1 > div {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .bonus-card .action-section {
        padding: 0 0.75rem 0.75rem;
    }
    
    .bonus-card .action-section a {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* Desktop grid layout */
@media (min-width: 769px) {
    .bonus-card {
        text-align: center;
        height: 100%;
    }
    
    .bonus-card .logo-section {
        margin: 0;
    }
    
    .bonus-card .bonus-info {
        margin-bottom: 1rem;
    }
    
    .bonus-card .action-section {
        margin-top: auto;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fbbf24;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pulse animation for CTA buttons */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover effects for interactive elements */
.interactive:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.show {
    max-height: 200px;
}

/* Bonus amount highlight */
.bonus-amount {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* Responsive typography */
@media (max-width: 640px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
}

/* Enhanced focus states for accessibility */
button:focus,
a:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
