/* ============================================
   Global Styles - Base & Shared Components
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Raleway', sans-serif;
    background: #000;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
    color: #0F172A;
    line-height: 1.5;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Page Wrapper */
.page-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* ============================================
   Main Page Styles
   ============================================ */

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 48px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tests Grid */
.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 400px));
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    justify-content: center;
}

/* Test Card */
.test-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.test-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.test-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2D6FFF, #8B5CF6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.test-card-icon svg {
    width: 32px;
    height: 32px;
    color: #FFFFFF;
}

.test-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 12px;
}

.test-card-description {
    font-size: 0.95rem;
    color: #425466;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.test-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.test-card-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #64748B;
}

.test-card-meta-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.test-card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.test-card-tag {
    padding: 6px 12px;
    background: #F1F5F9;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #64748B;
    font-weight: 500;
}

.test-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #17A24D, #2B66F7);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.test-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(45, 111, 255, 0.4);
}

.test-card-btn svg {
    width: 20px;
    height: 20px;
}

/* Page Footer */
.page-footer {
    margin-top: 48px;
    text-align: center;
}

.page-footer-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.page-footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-footer-link:hover {
    color: #FFFFFF;
}

/* Responsive */
@media (max-width: 767px) {
    .page-wrapper {
        padding: 24px 16px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .tests-grid {
        grid-template-columns: 1fr;
    }

    .test-card {
        padding: 24px;
    }

    .test-card-title {
        font-size: 1.25rem;
    }
}
