/* Custom CSS for SunstateCrypto */

/* Enhanced CTAs and Animations */
.pulse-button {
    animation: subtle-pulse 2s infinite;
    transition: all 0.3s ease;
}

.pulse-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 133, 195, 0.3);
}

@keyframes subtle-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Loading Performance Optimizations */
.hero-section {
    background-attachment: scroll; /* Better mobile performance */
}

/* Content Update Notification */
.content-update-notification {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1050;
    max-width: 350px;
    animation: slideInRight 0.5s ease;
}

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

/* Bookmark Feature */
.bookmark-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.bookmark-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.bookmark-btn.bookmarked {
    background: var(--crypto-accent);
    color: white;
}

/* Enhanced Newsletter Section */
.newsletter-enhanced {
    background: linear-gradient(135deg, var(--crypto-primary) 0%, var(--crypto-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.3;
}

.newsletter-features {
    position: relative;
    z-index: 1;
}

/* Quick action hover effects */
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

:root {
    --crypto-primary: #1a1a2e;
    --crypto-secondary: #16213e;
    --crypto-accent: #f39c12;
    --crypto-accent-hover: #d35400;
    --crypto-light: #f8f9fa;
    --crypto-dark: #0d1b2a;
    --crypto-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --crypto-accent-gradient: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    
    /* Major Cryptocurrency Theme Colors */
    --xrp-blue: #0085c3;
    --xrp-dark: #002d5c;
    --xrp-light: #4db5ff;
    
    --xlm-blue: #14b9ec;
    --xlm-dark: #0a4a6b;
    --xlm-light: #7fd4f7;
    
    --hbar-purple: #5d00d4;
    --hbar-dark: #2a0066;
    --hbar-light: #9966ff;
    
    --algo-orange: #ff6b35;
    --algo-dark: #b34a26;
    --algo-light: #ff9970;
    
    --xdc-blue: #0052ff;
    --xdc-dark: #003db3;
    --xdc-light: #4d88ff;
    
    /* Multi-crypto gradients */
    --crypto-gradient-rainbow: linear-gradient(135deg, var(--xrp-blue), var(--xlm-blue), var(--hbar-purple), var(--algo-orange), var(--xdc-blue));
    --crypto-gradient-primary: linear-gradient(135deg, var(--xrp-blue), var(--xlm-blue));
    --crypto-gradient-secondary: linear-gradient(135deg, var(--hbar-purple), var(--algo-orange));
    --crypto-gradient-accent: linear-gradient(135deg, var(--xdc-blue), var(--xrp-light));
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Subtle crypto pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230085c3' fill-opacity='0.02'%3E%3Cpath d='M20 20c0 11-9 20-20 20s-20-9-20-20 9-20 20-20 20 9 20 20zm-20-15c-8.3 0-15 6.7-15 15s6.7 15 15 15 15-6.7 15-15-6.7-15-15-15z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
    z-index: -1;
}

/* Custom Background Classes */
.bg-crypto-dark {
    background-color: var(--crypto-dark) !important;
}

.bg-crypto-secondary {
    background-color: var(--crypto-secondary) !important;
}

.bg-crypto-primary {
    background-color: var(--crypto-primary) !important;
}

.bg-crypto-gradient {
    background: var(--crypto-gradient) !important;
}

.text-crypto-accent {
    color: var(--crypto-accent) !important;
}

.text-crypto-dark {
    color: var(--crypto-dark) !important;
}

.border-crypto-accent {
    border-color: var(--crypto-accent) !important;
}

/* Button Styles */
.btn-crypto-accent {
    background: var(--crypto-gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 133, 195, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-crypto-accent::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;
}

.btn-crypto-accent:hover::before {
    left: 100%;
}

.btn-crypto-accent:hover {
    background: var(--crypto-gradient-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(93, 0, 212, 0.4);
}

.btn-outline-crypto-accent {
    border: 2px solid var(--crypto-accent);
    color: var(--crypto-accent);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-outline-crypto-accent:hover {
    background: var(--crypto-accent);
    color: white;
    transform: translateY(-1px);
}

/* Navigation Styles */
.navbar {
    background: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 133, 195, 0.2);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--crypto-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link.active {
    color: var(--xrp-blue) !important;
    font-weight: 600;
    background: linear-gradient(135deg, var(--xrp-blue), var(--xlm-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link:hover {
    color: var(--xlm-blue) !important;
    transition: all 0.3s ease;
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    background: var(--crypto-gradient-rainbow);
    position: relative;
    overflow: hidden;
    animation: cryptoGradientShift 15s ease-in-out infinite;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M30 30m-8 0a8 8 0 1 1 16 0a8 8 0 1 1-16 0'/%3E%3Cpath d='M30 20v20M20 30h20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Crypto-themed animations */
@keyframes cryptoGradientShift {
    0% { background: linear-gradient(135deg, var(--xrp-blue), var(--xlm-blue)); }
    25% { background: linear-gradient(135deg, var(--xlm-blue), var(--hbar-purple)); }
    50% { background: linear-gradient(135deg, var(--hbar-purple), var(--algo-orange)); }
    75% { background: linear-gradient(135deg, var(--algo-orange), var(--xdc-blue)); }
    100% { background: linear-gradient(135deg, var(--xdc-blue), var(--xrp-blue)); }
}

@keyframes cryptoPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

@keyframes cryptoGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 133, 195, 0.3); }
    25% { box-shadow: 0 0 25px rgba(20, 185, 236, 0.4); }
    50% { box-shadow: 0 0 30px rgba(93, 0, 212, 0.4); }
    75% { box-shadow: 0 0 25px rgba(255, 107, 53, 0.4); }
}

/* Crypto-specific element styles */
.crypto-card {
    background: var(--crypto-gradient-primary);
    border-radius: 15px;
    padding: 1.5rem;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.crypto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 133, 195, 0.3);
    border-color: var(--xlm-blue);
}

.crypto-badge {
    background: var(--crypto-gradient-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    margin: 0.25rem;
}

/* Enhanced card effects with crypto theme colors */
.card.crypto-card .fas,
.card.crypto-card .fab {
    filter: drop-shadow(0 0 8px rgba(20, 185, 236, 0.5));
}

/* Individual card gradient themes */
.row .col-md-4:nth-child(1) .crypto-card { 
    background: linear-gradient(135deg, var(--xrp-blue), var(--xrp-dark)); 
}
.row .col-md-4:nth-child(2) .crypto-card { 
    background: linear-gradient(135deg, var(--xlm-blue), var(--xlm-dark)); 
}
.row .col-md-4:nth-child(3) .crypto-card { 
    background: linear-gradient(135deg, var(--hbar-purple), var(--hbar-dark)); 
}

/* Market insights cards */
.row .col-lg-3:nth-child(1) .crypto-card { 
    background: linear-gradient(135deg, var(--xrp-blue), var(--xrp-dark)); 
}
.row .col-lg-3:nth-child(2) .crypto-card { 
    background: linear-gradient(135deg, var(--xlm-blue), var(--xlm-dark)); 
}
.row .col-lg-3:nth-child(3) .crypto-card { 
    background: linear-gradient(135deg, var(--hbar-purple), var(--hbar-dark)); 
}
.row .col-lg-3:nth-child(4) .crypto-card { 
    background: linear-gradient(135deg, var(--algo-orange), var(--algo-dark)); 
}

.trust-indicators {
    opacity: 0.9;
}

/* Card Styles */
.card {
    border-radius: 1rem;
    transition: all 0.3s ease;
}

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

.review-card {
    border: 1px solid #e9ecef;
}

.review-card:hover {
    border-color: var(--crypto-accent);
}

/* Icon Circles */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Rating Stars */
.rating .fa-star {
    font-size: 0.9rem;
}

/* Process Steps */
.step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    font-weight: bold;
}

/* Newsletter Form */
.newsletter-form .input-group {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 1rem;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    border-color: var(--crypto-accent);
}

/* Feature Tags */
.feature-tags .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Search and Filter */
.category-nav .btn-sm {
    margin: 0.25rem;
    border-radius: 2rem;
}

/* Review Detail Page */
.metric-card {
    transition: all 0.3s ease;
}

.metric-card:hover {
    background-color: var(--crypto-accent) !important;
    color: white;
}

.sticky-top {
    z-index: 1020;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .trust-indicators .row {
        margin-top: 1rem;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
    
    .category-nav {
        text-align: left;
    }
    
    .category-nav .btn-sm {
        margin: 0.125rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .hero-section {
        min-height: 50vh;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        border-radius: 0 0 0.5rem 0.5rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--crypto-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--crypto-accent-hover);
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .share-section,
    .newsletter-form {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* Accessibility Improvements */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-crypto-accent {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .text-crypto-accent {
        color: #000 !important;
    }
}

/* Footer Styles */
footer .text-light:hover {
    color: var(--crypto-accent) !important;
    transition: color 0.3s ease;
}

footer a:hover {
    opacity: 1 !important;
    color: var(--crypto-accent) !important;
    transition: all 0.3s ease;
}

/* X Logo Styling */
.x-logo {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.social-links a:hover .x-logo {
    transform: scale(1.1);
}

/* 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;
    }
}
