/* Custom styles for Hellcase Promo Codes website */

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Promo code card styles */
.promo-card {
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Success rate indicator styles */
.success-rate-high {
    color: #10b981;
}

.success-rate-medium {
    color: #f59e0b;
}

.success-rate-low {
    color: #ef4444;
}

/* Category badge styles */
.category-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Button hover effects */
.reveal-button {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.reveal-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 135, 95, 0.3);
}

.reveal-button:active {
    transform: translateY(0);
}

.reveal-button.revealed {
    background-color: #6b7280;
    cursor: default;
}

.reveal-button.revealed:hover {
    transform: none;
    box-shadow: none;
}

/* Loading animation for buttons */
.loading {
    animation: pulse 1.5s infinite;
}

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

.mobile-menu.open {
    max-height: 300px;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Focus styles for accessibility */
.focus-visible:focus {
    outline: 2px solid #00875F;
    outline-offset: 2px;
}

/* Stats animation */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* Gradient text effect for hero */
.gradient-text {
    background: linear-gradient(135deg, #1f2937 0%, #00875F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card grid responsive adjustments */
@media (max-width: 640px) {
    .promo-card {
        margin-bottom: 1rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    .promo-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .promo-card {
        border: 2px solid #000;
    }
    
    .reveal-button {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}

/* Custom utility classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* Pagination styles */
.pagination-button {
    transition: all 0.2s ease;
}

.pagination-button:hover:not(:disabled) {
    background-color: #f3f4f6;
    transform: translateY(-1px);
}

.pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Success indicators */
.success-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.success-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

/* Tooltip styles */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937;
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.tooltip:hover::after {
    opacity: 1;
}

