/* Contract Page Specific Styles */
/* ============================= */

/* Background Pattern */
.bg-grid-pattern {
    background-image: 
        linear-gradient(rgba(34, 197, 94, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Hero Section Enhancements */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Timeline Enhancements */
.timeline-line {
    background: linear-gradient(
        180deg,
        rgba(34, 197, 94, 0.2) 0%,
        rgba(34, 197, 94, 0.6) 50%,
        rgba(34, 197, 94, 0.2) 100%
    );
}

.timeline-step {
    transition: all 0.3s ease;
}

.timeline-step:hover {
    transform: translateX(8px);
}

.timeline-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
}

.step-number {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.step-number:hover::before {
    left: 100%;
}

/* Card Enhancements */
.info-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #22c55e, #16a34a, #22c55e);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Payment Method Cards */
.payment-method {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.payment-method::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.payment-method:hover::after {
    left: 100%;
}

.payment-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Crypto Address Display */
.crypto-address {
    position: relative;
    transition: all 0.3s ease;
}

.crypto-address:hover {
    background: rgba(34, 197, 94, 0.1);
    transform: scale(1.02);
}

.crypto-address .copy-button {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.crypto-address:hover .copy-button {
    opacity: 1;
}

/* Form Enhancements */
.form-select {
    transition: all 0.3s ease;
    position: relative;
}

.form-select:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    transform: translateY(-2px);
}

.form-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.form-button:hover::before {
    left: 100%;
}

.form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

/* PDF Container Enhancements */
.pdf-container {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pdf-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pdf-container:hover::before {
    opacity: 1;
}

.pdf-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Staggered Animation Delays */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }

/* Responsive Enhancements */
@media (max-width: 768px) {
    .timeline-line {
        left: 1rem;
    }
    
    .timeline-step {
        margin-left: 0;
    }
    
    .step-number {
        width: 3rem;
        height: 3rem;
        font-size: 0.875rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Dark Mode Enhancements */
.dark .bg-grid-pattern {
    background-image: 
        linear-gradient(rgba(34, 197, 94, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, 0.05) 1px, transparent 1px);
}

.dark .timeline-line {
    background: linear-gradient(
        180deg,
        rgba(34, 197, 94, 0.1) 0%,
        rgba(34, 197, 94, 0.3) 50%,
        rgba(34, 197, 94, 0.1) 100%
    );
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Focus States for Accessibility */
.focus-visible:focus {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .step-number {
        border: 2px solid currentColor;
    }
    
    .info-card {
        border: 2px solid currentColor;
    }
    
    .payment-method {
        border: 1px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-fade-in-up,
    .animate-slide-in-left,
    .animate-slide-in-right,
    .animate-scale-in {
        animation: none;
    }
    
    .timeline-step:hover {
        transform: none;
    }
    
    .info-card:hover {
        transform: none;
    }
    
    .pdf-container:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .hero-section,
    .timeline-line,
    .form-section {
        display: none;
    }
    
    .info-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}
