/* Custom styles for TrustMark */

/* Ethereum address styling */
.eth-address {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Transaction table improvements */
.table-hover tbody tr:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.075);
}

/* Badge styles for transaction categories */
.badge.category-rookie {
    background-color: var(--bs-secondary);
}

.badge.category-bot {
    background-color: var(--bs-info);
}

.badge.category-whale {
    background-color: var(--bs-primary);
}

.badge.category-hacker {
    background-color: var(--bs-danger);
}

.badge.category-whitehat {
    background-color: var(--bs-success);
}

.badge.category-airdrop {
    background-color: var(--bs-purple);
}

.badge.category-liquidity {
    background-color: var(--bs-teal);
}

/* Flag button hover effect */
.flag-btn:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Print styles */
@media print {
    .navbar, .btn, footer, .card-footer {
        display: none !important;
    }
    
    body {
        background-color: white !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .card-header {
        background-color: #f8f9fa !important;
        color: black !important;
    }
    
    .table {
        color: black !important;
    }
}

/* --- Advanced Glassmorphism & 3D Effects --- */
body {
    background: linear-gradient(135deg, #181c2b 0%, #232946 100%);
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #f3f6fd;
    transition: background 0.5s;
}

.glass-card {
    background: rgba(22, 27, 34, 0.5);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-3d {
    background: linear-gradient(90deg, #5f72ff 0%, #9a5cff 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 16px 0 rgba(90, 60, 255, 0.18);
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-3d:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 32px 0 rgba(90, 60, 255, 0.25);
}

/* --- AOS Animations --- */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}
[data-aos].aos-animate {
    opacity: 1;
}

/* --- Animated Gradient Border --- */
.animated-border {
    border: 3px solid;
    border-image: linear-gradient(90deg, #5f72ff, #9a5cff, #5f72ff) 1;
    animation: borderMove 3s linear infinite;
}
@keyframes borderMove {
    0% { border-image-source: linear-gradient(90deg, #5f72ff, #9a5cff, #5f72ff); }
    100% { border-image-source: linear-gradient(270deg, #5f72ff, #9a5cff, #5f72ff); }
}

/* --- Parallax Hero --- */
.hero-3d {
    background: linear-gradient(120deg, #232946 60%, #5f72ff 100%);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
    border-radius: 32px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.hero-3d::before {
    content: '';
    position: absolute;
    top: -40px; left: -40px; right: -40px; bottom: -40px;
    background: radial-gradient(circle at 20% 20%, #9a5cff33 0%, transparent 70%);
    z-index: 0;
}
.hero-3d > * { position: relative; z-index: 1; }

/* --- Dark/Light Mode Toggle --- */
body.light-mode {
    background: linear-gradient(135deg, #f3f6fd 0%, #e9eafc 100%);
    color: #232946;
}
body.light-mode .glass-card {
    background: rgba(255,255,255,0.7);
    color: #232946;
    border: 1.5px solid rgba(30,34,54,0.12);
}
body.light-mode .btn-3d {
    background: linear-gradient(90deg, #5f72ff 0%, #9a5cff 100%);
    color: #fff;
}

/* ===== MODERN TRUSTMARK STYLES ===== */

/* --- Global Scrollbar & Smooth Scrolling --- */
* {
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

/* Modern scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background-color: #30363d;
    border-radius: 4px;
    border: 2px solid #0d1117;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #8b949e;
}

/* Firefox scrollbar styling */
* {
    scrollbar-width: thin;
    scrollbar-color: #30363d #0d1117;
}

/* --- Modern Body Styling --- */
body {
    background-color: #0d1117;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #e6edf3;
    transition: background-color 0.5s;
    overflow-x: hidden;
    position: relative;
}

/* --- Modern Glassmorphism Cards --- */
.glass-card {
    background: rgba(22, 27, 34, 0.5);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-card-header {
    background: rgba(95, 114, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 600;
}

/* --- Modern 3D Buttons --- */
.btn-3d {
    background-color: #238636;
    color: #ffffff;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-3d:hover {
    background-color: #2ea043;
    border-color: #30363d;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    border-color: #30363d;
    color: #e6edf3;
}

.btn-outline-light:hover {
    background-color: #21262d;
    border-color: #8b949e;
    color: #e6edf3;
}

/* --- Enhanced AOS Animations --- */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform, filter;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(60px);
    filter: blur(10px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    filter: blur(0);
}

[data-aos="fade-down"] {
    transform: translateY(-60px);
    filter: blur(10px);
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
    filter: blur(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.8) rotate(-5deg);
    filter: blur(5px);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1) rotate(0deg);
    filter: blur(0);
}

/* --- Modern Animated Border --- */
.animated-border {
    position: relative;
    border: none;
    border-radius: 24px;
    background: linear-gradient(135deg, #5f72ff, #9a5cff, #ff6b6b, #5f72ff);
    background-size: 300% 300%;
    animation: borderGradient 12s ease infinite;
    padding: 2px;
}

.animated-border::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(30, 34, 54, 0.9);
    border-radius: 22px;
    z-index: -1;
}

@keyframes borderGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Enhanced Hero Section --- */
.hero-3d {
    padding: 5rem 2rem;
    margin-bottom: 3rem;
    text-align: center;
    border-bottom: 1px solid #30363d;
    background: #0d1117;
}

.hero-3d::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(154, 92, 255, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(95, 114, 255, 0.2) 0%, transparent 50%);
    animation: heroFloat 30s ease-in-out infinite;
    z-index: 0;
}

.hero-3d > * { 
    position: relative; 
    z-index: 1; 
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-10px, -10px) rotate(1deg); }
    50% { transform: translate(10px, -5px) rotate(-1deg); }
    75% { transform: translate(-5px, 10px) rotate(0.5deg); }
}

/* --- Modern Table Styling --- */
.table {
    background: #161b22;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #30363d;
    color: #e6edf3;
}

.table thead th {
    background: #21262d;
    border-bottom: 1px solid #30363d;
    color: #8b949e;
    font-weight: 600;
}

.table tbody tr {
    border-top: 1px solid #30363d;
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: #21262d;
}

.table tbody td {
    border: none;
    padding: 1rem;
    color: #e6edf3;
    vertical-align: middle;
}

/* --- Modern Badge Styling --- */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.75rem;
    border: 1px solid transparent;
}

.badge.category-rookie {
    background-color: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
    border-color: rgba(88, 166, 255, 0.3);
}

.badge.category-bot {
    background-color: rgba(110, 84, 166, 0.1);
    color: #a371f7;
    border-color: rgba(110, 84, 166, 0.3);
}

.badge.category-whale {
    background-color: rgba(46, 160, 67, 0.1);
    color: #2ea043;
    border-color: rgba(46, 160, 67, 0.3);
}

.badge.category-hacker {
    background-color: rgba(248, 81, 73, 0.1);
    color: #f85149;
    border-color: rgba(248, 81, 73, 0.3);
}

.badge.category-whitehat {
    background-color: rgba(210, 153, 34, 0.1);
    color: #d29922;
    border-color: rgba(210, 153, 34, 0.3);
}

.badge.category-airdrop {
    background-color: rgba(247, 147, 26, 0.1);
    color: #f7931a;
    border-color: rgba(247, 147, 26, 0.3);
}

.badge.category-liquidity {
    background-color: rgba(32, 129, 240, 0.1);
    color: #2081f0;
    border-color: rgba(32, 129, 240, 0.3);
}

/* --- Enhanced Navigation --- */
.navbar {
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #30363d;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #e6edf3 !important;
    background: none;
    -webkit-text-fill-color: initial;
}

.nav-link {
    font-weight: 500;
    color: #8b949e !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #e6edf3 !important;
}

.nav-link::after {
    display: none;
}

/* --- Modern Form Styling --- */
.form-control {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    padding: 10px 12px;
}

.form-control:focus {
    background: #161b22;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.3);
    color: #e6edf3;
}

.form-control::placeholder {
    color: #8b949e;
}

/* --- Modern Alert Styling --- */
.alert {
    border: none;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Enhanced Toggle Switch --- */
.toggle-switch {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    z-index: 1000;
}

.toggle-switch .btn {
    background: rgba(30, 34, 54, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.toggle-switch .btn:hover {
    transform: scale(1.1) rotate(180deg);
    background: rgba(95, 114, 255, 0.2);
}

/* --- Modern Card Styling --- */
.card {
    background: rgba(30, 34, 54, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
    background: rgba(95, 114, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 600;
}

/* --- Ethereum Address Styling --- */
.eth-address {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: #21262d;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #30363d;
    color: #58a6ff;
}

/* --- Flag Button Enhancements --- */
.flag-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.flag-btn:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

/* --- Print Styles --- */
@media print {
    .navbar, .btn, footer, .card-footer, .toggle-switch {
        display: none !important;
    }
    
    body {
        background-color: white !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .card-header {
        background-color: #f8f9fa !important;
        color: black !important;
    }
    
    .table {
        color: black !important;
    }
}

/* --- Light Mode Support --- */
body.light-mode {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #cbd5e1 50%, #94a3b8 75%, #64748b 100%);
    background-size: 400% 400%;
    color: #1e293b;
}

body.light-mode .glass-card {
    background: rgba(255, 255, 255, 0.7);
    color: #1e293b;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .btn-3d {
    background: linear-gradient(135deg, #5f72ff 0%, #9a5cff 50%, #ff6b6b 100%);
    color: #fff;
}

/* --- Responsive Enhancements --- */
@media (max-width: 768px) {
    .hero-3d {
        padding: 2rem 1rem;
        border-radius: 20px;
    }
    
    .glass-card {
        border-radius: 16px;
    }
    
    .btn-3d {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* --- Loading Animations --- */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.loading-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* --- Smooth Page Transitions --- */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition.loaded {
    opacity: 1;
    transform: translateY(0);
}
/* Purple button styling for Chrome extension download */
.btn-purple {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-purple:hover {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.btn-purple:focus {
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.5);
}

/* Chrome extension highlight section */
.extension-highlight {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.extension-highlight h3 {
    color: #8b5cf6;
    font-weight: 600;
}

.extension-highlight .feature-icon {
    color: #a855f7;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}