/* Custom Styles for Gold Trading Platform */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #EAB308;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #CA8A04;
}

/* Header Fixed */
header {
    transition: all 0.3s ease;
}

/* Hero Section Background */
.hero-bg {
    background: linear-gradient(135deg, #EFF6FF 0%, #CCFBF1 50%, #D1FAE5 100%);
}

/* Platform Cards Hover Effect */
.platform-card {
    transition: all 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-10px);
}

/* Button Animations */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* FAQ Accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer:not(.hidden) {
    max-height: 500px;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question i.rotate-180 {
    transform: rotate(180deg);
}

/* Modal Animations */
#activity-modal {
    animation: fadeIn 0.3s ease;
}

#activity-modal > div {
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Gold Gradient Text */
.gold-gradient {
    background: linear-gradient(135deg, #EAB308 0%, #F59E0B 50%, #EAB308 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Trust Badges Animation */
.trust-badge {
    animation: float 3s ease-in-out infinite;
}

.trust-badge:nth-child(2) {
    animation-delay: 0.5s;
}

.trust-badge:nth-child(3) {
    animation-delay: 1s;
}

.trust-badge:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Stats Counter */
.stats-number {
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1;
}

/* Platform Comparison Card */
.comparison-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.comparison-card:hover {
    border-color: #EAB308;
    box-shadow: 0 20px 40px rgba(234, 179, 8, 0.2);
}

/* Process Steps */
.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #3B82F6, transparent);
}

.process-step:last-child::after {
    display: none;
}

/* Table Responsive */
@media (max-width: 768px) {
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem !important;
    }
}

/* Loading Animation */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #EAB308;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Chart Container */
#gold-chart {
    min-height: 400px;
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
}

/* Article List */
.article-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.article-item:hover {
    border-left-color: #EAB308;
    background-color: #FFFBEB;
}

/* CTA Section */
.cta-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-card:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Footer Links */
footer a {
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #EAB308;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
}

/* Print Styles */
@media print {
    header, footer, .no-print {
        display: none;
    }
    
    body {
        background: white;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles */
a:focus, button:focus {
    outline: 2px solid #EAB308;
    outline-offset: 2px;
}

/* Image Lazy Loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Custom Utilities */
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.box-shadow-xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Gradient Backgrounds */
.bg-gradient-gold {
    background: linear-gradient(135deg, #F59E0B 0%, #EAB308 50%, #FBBF24 100%);
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 50%, #1D4ED8 100%);
}

.bg-gradient-green {
    background: linear-gradient(135deg, #10B981 0%, #059669 50%, #047857 100%);
}

/* Animation Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

