/* ==========================================================================
   SUGGESTIONS HUB GLOBAL VARIABLES & ARCHITECTURE
   ========================================================================== */
:root {
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --dark: #0f172a;
    --gray-light: #f8fafc;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-muted: #64748b;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f8fafc;
    color: var(--text);
    line-height: 1.6;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.main-container {
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 2.2rem;
    color: var(--dark);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.hero-section p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Smart Filter Card */
.filter-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group select {
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    background: #ffffff;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.form-group select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Secure PDF Viewer Viewport */
.viewer-section {
    display: none;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: 0 15px 30px -10px rgba(15, 23, 42, 0.06);
    animation: fadeInViewport 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInViewport {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.25rem;
}

.viewer-header h3 {
    font-size: 1.15rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.security-lock-tag {
    font-size: 0.75rem;
    background: #fee2e2;
    color: #ef4444;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    text-transform: uppercase;
}

.pdf-viewport-shield {
    position: relative;
    width: 100%;
    height: 700px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.pdf-glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
    cursor: default;
}

.pdf-viewport-shield iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: relative;
    z-index: 1;
}

@media print {
    body, .main-container, .viewer-section {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
    .viewer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .pdf-viewport-shield {
        height: 500px;
    }
}