/* Zeus Decryptor Website - Custom Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7c8ff0 0%, #8a5db8 100%);
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Live indicator pulse animation (like Telegram) */
@keyframes livePulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

.animate-pulse-slow {
    animation: pulse 3s ease-in-out infinite;
}

.animate-live-pulse {
    animation: livePulse 1.5s ease-in-out infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Button Effects */
.btn-glow:hover {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6), 0 0 40px rgba(118, 75, 162, 0.4);
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Stats Counter Animation */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Background Patterns */
.bg-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
}

/* Glowing Border */
.border-glow {
    position: relative;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.border-glow::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.border-glow:hover::before {
    opacity: 0.3;
}

/* Professional Article Content Formatting */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #e5e7eb;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #8b5cf6;
    background: linear-gradient(90deg, #8b5cf6 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f3f4f6;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-left: 1rem;
    border-left: 4px solid #8b5cf6;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #d1d5db;
}

.article-content strong {
    color: #ffffff;
    font-weight: 600;
}

.article-content em {
    color: #a78bfa;
    font-style: italic;
}

.article-content ul,
.article-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: #d1d5db;
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    padding-left: 0.5rem;
}

.article-content ul li {
    list-style-type: none;
    position: relative;
}

.article-content ul li:before {
    content: "▸";
    color: #8b5cf6;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1.5em;
    position: absolute;
    left: 0;
}

.article-content ol li {
    counter-increment: item;
}

.article-content ol {
    counter-reset: item;
}

.article-content ol li:before {
    content: counter(item) ".";
    color: #8b5cf6;
    font-weight: 600;
    margin-right: 0.5rem;
}

.article-content .support-section,
.article-content .download-section,
.article-content .disclaimer-section {
    margin: 2.5rem 0;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.article-content .support-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border: 2px solid #3b82f6;
}

.article-content .download-section {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    border: 2px solid #10b981;
}

.article-content .disclaimer-section {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    border: 2px solid #ef4444;
    border-left: 4px solid #dc2626;
}

.article-content .support-section h2,
.article-content .support-section h3,
.article-content .download-section h2,
.article-content .download-section h3,
.article-content .disclaimer-section h2,
.article-content .disclaimer-section h3 {
    color: #ffffff;
    margin-top: 0;
    border: none;
    background: none;
    -webkit-text-fill-color: #ffffff;
}

.article-content a {
    color: #60a5fa;
    text-decoration: underline;
    transition: color 0.2s;
}

.article-content a:hover {
    color: #93c5fd;
}

.article-content .telegram-btn {
    display: inline-block;
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 136, 204, 0.3);
}

.article-content .telegram-btn:hover {
    background: linear-gradient(135deg, #0099dd 0%, #0077bb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(0, 136, 204, 0.5);
}

/* ===================================
   Live Statistics Animations
   =================================== */

/* Shimmer effect for progress bar */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.animate-shimmer {
    animation: shimmer 2s infinite;
}

/* Pulse animation for live indicator */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Live point on chart */
.chart-live-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 1);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ===================================================
   Screenshot Watermark Removal & Custom Overlay
   =================================================== */

/* Wrapper for screenshots */
.screenshot-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #1a1a2e;
    display: flex;
    align-items: flex-start;
    /* Height will be set dynamically to 40% of image */
}

/* Apply filters to hide background watermark */
.screenshot-wrapper img {
    width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    object-position: top;
    flex-shrink: 0;
    /* Actual height will be set by JS to 40% of original */
}

/* Removed dark overlay - not needed with crop */

/* Professional watermark overlay at bottom */
.screenshot-wrapper::after {
    content: 'ZeusDecrypt.com';
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: linear-gradient(
        135deg,
        rgba(124, 58, 237, 0.92) 0%,
        rgba(37, 99, 235, 0.92) 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.3);
    z-index: 2;
    pointer-events: none;
}

/* Hover effect for bottom watermark */
.screenshot-wrapper:hover::after {
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.95) 0%,
        rgba(59, 130, 246, 0.95) 100%
    );
    box-shadow: 0 2px 16px rgba(139, 92, 246, 0.5);
}

/* Modal screenshot styling - adjusted for cropped images */
#screenshot-modal .screenshot-wrapper {
    max-width: 900px;
    max-height: 450px; /* Reduced for 40% crop */
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}

#screenshot-modal .screenshot-wrapper img {
    width: 100%;
    object-fit: cover;
}

/* Fix modal inner container - compact to content */
#screenshot-modal .bg-gray-900 {
    width: auto;
    max-width: 950px;
}

#screenshot-modal .p-6 {
    padding: 1.5rem;
    overflow: hidden;
}

/* Remove spacing between image and attribution */
#screenshot-modal .screenshot-attribution {
    margin-top: 0 !important;
    padding-top: 12px;
}

/* Attribution text in modal */
.screenshot-attribution {
    margin-top: 12px;
    padding: 12px 24px;
    background: rgba(124, 58, 237, 0.1);
    border-left: 3px solid #7c3aed;
    border-radius: 6px;
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 8px;
}

.screenshot-attribution i {
    color: #7c3aed;
}

/* Fix Victim Details modal screenshot section */
#victim-details-modal .screenshot-wrapper {
    margin: 0;
    overflow: hidden;
}

#victim-details-modal .screenshot-wrapper img {
    width: 100%;
    object-fit: cover;
    object-position: top;
}

#victim-details-modal .screenshot-attribution {
    margin-top: 0 !important;
    padding-top: 12px;
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    min-width: 200px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(139, 92, 246, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    padding: 0.5rem 0;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 1rem;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.nav-dropdown-menu a:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    padding-left: 1.5rem;
}

.nav-dropdown-menu a.active {
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.15);
}

.nav-dropdown-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-icon {
    transform: rotate(180deg);
}

/* Mobile dropdown show class */
.nav-dropdown-menu.show-mobile {
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 1rem !important;
    display: block !important;
}

/* Mobile Dropdown */
.mobile-dropdown {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
}

.mobile-dropdown.active {
    max-height: 1200px;
    opacity: 1;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    padding: 0.5rem 0;
}

.mobile-dropdown-toggle .icon {
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
}

.mobile-dropdown-toggle.active .icon {
    transform: rotate(180deg);
}

.mobile-dropdown a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #9ca3af;
    font-size: 0.9rem;
    border-left: 2px solid rgba(139, 92, 246, 0.3);
    margin-left: 1rem;
    transition: all 0.2s ease;
}

.mobile-dropdown a:hover {
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.05);
    padding-left: 2rem;
}

.mobile-dropdown a.active {
    color: #a78bfa;
    border-left-color: #a78bfa;
    background: rgba(139, 92, 246, 0.1);
}

/* ========================================
   MOBILE RESPONSIVE ENHANCEMENTS
   Added: December 7, 2025
   ======================================== */

/* Mobile First - Base Responsive Utilities */
@media (max-width: 640px) {
    /* Typography adjustments */
    h1 { font-size: 1.75rem !important; line-height: 1.2; }
    h2 { font-size: 1.5rem !important; line-height: 1.3; }
    h3 { font-size: 1.25rem !important; line-height: 1.4; }
    h4 { font-size: 1.1rem !important; }
    
    /* Container padding */
    .container { padding-left: 1rem; padding-right: 1rem; }
    
    /* Navigation improvements */
    nav .container { padding-top: 0.75rem; padding-bottom: 0.75rem; }
    
    /* Hero sections */
    .hero-section, .page-header {
        padding-top: 5rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Statistics cards grid */
    .stats-grid, .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    /* Table responsiveness */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        font-size: 0.875rem;
    }
    
    table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    /* Button sizing */
    button, .btn {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Modal improvements */
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 1rem;
        max-height: 90vh;
    }
    
    /* Form inputs */
    input, select, textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.75rem !important;
    }
    
    /* Cards spacing */
    .card, .bg-gray-800 {
        padding: 1rem !important;
        margin-bottom: 1rem;
    }
    
    /* Hide desktop-only elements */
    .hidden-mobile { display: none !important; }
}

/* Tablet Portrait (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Tablet Landscape (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .container {
        max-width: 90%;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger tap targets for mobile */
    button, a, .clickable {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Remove hover states on touch devices */
    *:hover {
        transition: none !important;
    }
}

/* Map responsiveness (Leaflet) */
@media (max-width: 768px) {
    #map {
        height: 350px !important;
        margin-bottom: 1.5rem;
    }
    
    .leaflet-control-zoom {
        margin-top: 60px !important;
    }
    
    .leaflet-popup-content {
        font-size: 0.9rem;
        min-width: 200px;
    }
}

/* Chart responsiveness (Chart.js) */
@media (max-width: 640px) {
    canvas {
        max-height: 250px !important;
    }
    
    .chart-container {
        padding: 0.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Filter and search sections */
@media (max-width: 640px) {
    .filter-section, .search-section {
        flex-direction: column !important;
        gap: 0.75rem;
    }
    
    .filter-section > *, .search-section > * {
        width: 100% !important;
    }
    
    /* Quick filter buttons */
    .quick-filter-btn {
        font-size: 0.75rem !important;
        padding: 0.5rem 0.75rem !important;
    }
}

/* Pagination improvements */
@media (max-width: 640px) {
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .pagination button {
        flex: 1;
        min-width: 80px;
    }
}

/* Loading states */
@media (max-width: 640px) {
    .loading-spinner {
        width: 40px !important;
        height: 40px !important;
    }
    
    .skeleton-loader {
        height: 100px;
    }
}

/* Horizontal scroll indicators */
.table-wrapper {
    position: relative;
}

.table-wrapper::after {
    content: '→ Swipe';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 92, 246, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem 0 0 0.5rem;
    font-size: 0.85rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .table-wrapper.show-scroll-hint::after {
        opacity: 1;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 640px) {
    /* Focus indicators */
    *:focus-visible {
        outline: 2px solid #a78bfa;
        outline-offset: 2px;
    }
    
    /* Skip to content link */
    .skip-to-content {
        position: absolute;
        top: -40px;
        left: 0;
        background: #a78bfa;
        color: white;
        padding: 0.5rem 1rem;
        z-index: 100;
    }
    
    .skip-to-content:focus {
        top: 0;
    }
}

/* Print styles */
@media print {
    nav, footer, .no-print {
        display: none !important;
    }
    
    body {
        color: black;
        background: white;
    }
    
    table {
        overflow: visible !important;
    }
}

/* Landscape mobile fixes */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding-top: 3rem !important;
        padding-bottom: 2rem !important;
    }
    
    .modal-content {
        max-height: 80vh;
    }
}

