/* ===================================
   VirusTotal Reports - Matching Main Site Design
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f7f6f9;
    color: #1f2937;
    line-height: 1.6;
    min-height: 100vh;
}

/* ===================================
   Header - Same as Main Site
   =================================== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.logo-text {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #6366f1;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===================================
   Main Content
   =================================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: 4.5rem;
}

/* ===================================
   Transparency Banner
   =================================== */
.transparency-banner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

.banner-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.banner-icon svg {
    color: #d97706;
}

.banner-content {
    flex: 1;
}

.banner-content strong {
    display: block;
    font-size: 1.05rem;
    color: #92400e;
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
}

.banner-content p {
    font-size: 0.9rem;
    color: #78350f;
    line-height: 1.6;
    margin: 0;
}

.banner-content p strong {
    display: inline;
    font-size: inherit;
    color: #92400e;
}

/* ===================================
   Page Hero
   =================================== */
.page-hero {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 24px;
    margin: 2rem 0;
    padding: 3rem;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-hero::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='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-icon svg {
    width: 44px;
    height: 44px;
    color: #ffffff;
}

.page-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.trust-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ===================================
   Version Sections
   =================================== */
.version-section {
    margin-bottom: 2rem;
}

.section-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.version-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.version-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.02em;
}

.version-badge {
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.version-badge.latest {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.version-badge.previous {
    background: #6b7280;
    color: #ffffff;
}

/* ===================================
   Table Styles
   =================================== */
.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.report-table thead {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.report-table th {
    padding: 0.875rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
}

.report-table tbody tr:last-child {
    border-bottom: none;
}

.report-table td {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
}

.file-name {
    font-weight: 500;
    color: #1f2937;
}

/* File Type Badge */
.file-type {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.file-type.apk {
    background: #ede9fe;
    color: #5b21b6;
}

.file-type.exe {
    background: #f3f4f6;
    color: #374151;
}

.file-type.zip {
    background: #ecfdf5;
    color: #047857;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.safe {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

/* Report Link */
.report-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.report-link:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

/* ===================================
   Info Section
   =================================== */
.info-section {
    margin-bottom: 2rem;
}

.info-box {
    background: #f9fafb;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #6366f1;
    margin-bottom: 1rem;
}

.info-box h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.info-box p {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-note {
    color: #6b7280;
    font-size: 0.85rem;
    text-align: center;
}

/* ===================================
   Footer - Same as Main Site
   =================================== */
.footer {
    padding: 3rem 2rem 2rem;
    background: linear-gradient(180deg, #f8f9fb 0%, #f1f3f8 100%);
    border-top: 1px solid #e2e5eb;
    color: #6b7280;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand .logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.footer-brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

.footer-tagline {
    font-size: 0.8rem;
    color: #6b7280;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    padding: 1rem 0;
}

.footer-nav .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem;
}

.footer-divider {
    width: 100%;
    max-width: 400px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d1d5db, transparent);
}

.footer-copyright {
    font-size: 0.8rem;
    color: #9ca3af;
    text-align: center;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .header {
        padding: 0.875rem 1.25rem;
    }

    .nav {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .logo-text {
        display: none;
    }

    .main-content {
        padding: 0 1rem;
    }

    .page-hero {
        padding: 2rem 1.5rem;
        margin: 1rem 0;
        border-radius: 16px;
    }

    .page-hero h1 {
        font-size: 1.5rem;
    }

    .hero-icon {
        width: 60px;
        height: 60px;
    }

    .hero-icon svg {
        width: 32px;
        height: 32px;
    }

    .section-container {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .version-header h2 {
        font-size: 1.25rem;
    }

    .report-table th,
    .report-table td {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }

    .report-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }

    .footer {
        padding: 2rem 1.25rem 1.5rem;
    }
}

@media (max-width: 480px) {

    .report-table th:nth-child(2),
    .report-table td:nth-child(2) {
        display: none;
    }
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-hero {
    animation: fadeIn 0.6s ease-out;
}

.version-section {
    animation: fadeIn 0.6s ease-out;
}

.version-section:nth-child(2) {
    animation-delay: 0.1s;
}

.version-section:nth-child(3) {
    animation-delay: 0.2s;
}