@tailwind base;
@tailwind components;
@tailwind utilities;

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

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(118, 185, 0, 0.2); }
    50% { box-shadow: 0 0 25px rgba(118, 185, 0, 0.6); }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(118, 185, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(118, 185, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(118, 185, 0, 0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 3s;
}

.animate-pulse-green {
    animation: pulse-green 2s infinite;
}

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #76b900;
}

/* Range Input Styling */
input[type=range] {
    -webkit-appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #76b900;
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 0 10px rgba(118, 185, 0, 0.5);
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #333;
    border-radius: 4px;
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Text Gradient */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #76b900, #4ade80);
}

/* Chart Animations */
.chart-bar {
    transition: height 1s ease-out;
}
.chart-bar:hover {
    filter: brightness(1.2);
}

/* Bottom Form Section */
.bottom-form-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #76b900, #4ade80);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
}

.form-header p {
    color: #9ca3af;
    font-size: 1rem;
    margin-bottom: 15px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
}

.timer-block {
    background: rgba(118, 185, 0, 0.1);
    border: 1px solid rgba(118, 185, 0, 0.3);
    border-radius: 8px;
    padding: 10px 15px;
    text-align: center;
    min-width: 70px;
}

.timer-block span:first-child {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #76b900;
    line-height: 1;
}

.timer-label {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-separator {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4b5563;
    margin-top: -15px;
}

.registration-form .form-group {
    margin-bottom: 15px;
}

.registration-form input {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 14px 16px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.registration-form input:focus {
    outline: none;
    border-color: #76b900;
    box-shadow: 0 0 0 3px rgba(118, 185, 0, 0.1);
}

.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.country-code {
    position: absolute;
    left: 16px;
    color: #9ca3af;
    font-weight: 500;
    pointer-events: none;
}

.phone-input-wrapper input {
    padding-left: 55px;
}

.submit-btn {
    width: 100%;
    background: #76b900;
    color: black;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    background: #5ca000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(118, 185, 0, 0.2);
}

.form-security {
    text-align: center;
    margin-top: 15px;
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Footer */
footer {
    background-color: #050505;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 0 30px;
}

/* Enhanced Modal Styles */
#modal-content {
    box-shadow: 0 0 50px rgba(118, 185, 0, 0.15);
}

#modal-timer {
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Input Focus Animation */
input:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(118, 185, 0, 0.1);
}

/* Celebrity Quote Styling */
.quote-container {
    position: relative;
}

.quote-container::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 4rem;
    color: rgba(118, 185, 0, 0.1);
    font-family: serif;
}

/* Floating Notifications Animations */
@keyframes float-1 {
    0%, 100% { transform: translateY(0) translateZ(10px); }
    50% { transform: translateY(-10px) translateZ(10px); }
}
@keyframes float-2 {
    0%, 100% { transform: translateX(2rem) translateY(0) translateZ(20px); }
    50% { transform: translateX(2rem) translateY(-8px) translateZ(20px); }
}
@keyframes float-3 {
    0%, 100% { transform: translateX(-1rem) translateY(0) translateZ(30px); }
    50% { transform: translateX(-1rem) translateY(-12px) translateZ(30px); }
}

.animate-float-1 { animation: float-1 4s ease-in-out infinite; }
.animate-float-2 { animation: float-2 5s ease-in-out infinite; }
.animate-float-3 { animation: float-3 6s ease-in-out infinite; }

.notification-card {
    transition: all 0.3s ease;
}
.notification-card:hover {
    transform: scale(1.05) !important;
    border-color: #76b900;
    z-index: 50;
}
