/* HadenGrey Cybersecurity Theme CSS */
/* Based on HadenGrey company design specifications */

/* Import Roboto font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

/* CSS Variables for HadenGrey Color Palette */
:root {
    /* Primary Colors */
    --hg-brand-red: #c44552;
    --hg-primary-dark: #212121;
    --hg-navigation-dark: #111111;
    --hg-white: #e8e8e8;
    --hg-light-bg: #fafafa;
    
    /* Secondary Colors */
    --hg-secondary-gray: #666666;
    --hg-light-gray: #999999;
    --hg-medium-gray: #777777;
    --hg-accent-red: #d45562;
    --hg-black: #000000;
    
    /* Typography */
    --hg-font-family: 'Roboto', sans-serif;
    --hg-font-size-h1: 50px;
    --hg-font-size-h2: 36px;
    --hg-font-size-h3: 40px;
    --hg-font-size-h4: 36px;
    --hg-font-size-h5: 20px;
    --hg-font-size-h6: 18px;
    --hg-font-size-body: 20px;
    --hg-line-height-headings: 1.1;
    --hg-line-height-h3: 1.2;
    --hg-line-height-body: 1.6em;
    
    /* Border Radius */
    --hg-border-radius-card: 30px;
    --hg-border-radius-button: 50px;
    
    /* Transitions */
    --hg-transition: all 0.3s ease-in-out;
}

/* Base Styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--hg-font-family);
    background-color: var(--hg-primary-dark);
    color: var(--hg-white);
    line-height: var(--hg-line-height-body);
}

/* Typography */
h1 {
    font-size: var(--hg-font-size-h1);
    line-height: var(--hg-line-height-headings);
    font-weight: 600;
    color: var(--hg-brand-red);
    font-family: var(--hg-font-family);
}

h2 {
    font-size: var(--hg-font-size-h2);
    line-height: var(--hg-line-height-headings);
    font-weight: 600;
    color: var(--hg-light-gray);
    font-family: var(--hg-font-family);
}

h3 {
    font-size: var(--hg-font-size-h3);
    line-height: var(--hg-line-height-h3);
    font-weight: 600;
    color: var(--hg-light-gray);
    font-family: var(--hg-font-family);
}

h4 {
    font-size: var(--hg-font-size-h4);
    line-height: var(--hg-line-height-headings);
    font-weight: 500;
    color: var(--hg-medium-gray);
    font-family: var(--hg-font-family);
}

h5 {
    font-size: var(--hg-font-size-h5);
    line-height: var(--hg-line-height-headings);
    font-weight: 500;
    color: var(--hg-medium-gray);
    font-family: var(--hg-font-family);
}

h6 {
    font-size: var(--hg-font-size-h6);
    line-height: 1.5;
    font-weight: 500;
    color: var(--hg-medium-gray);
    font-family: var(--hg-font-family);
}

p {
    font-size: var(--hg-font-size-body);
    line-height: var(--hg-line-height-body);
    font-family: var(--hg-font-family);
}

/* Links */
a {
    color: var(--hg-brand-red);
    text-decoration: none;
    transition: var(--hg-transition);
}

a:hover {
    color: var(--hg-accent-red);
    text-decoration: underline;
}

/* Logo */
.synops-logo {
    color: var(--hg-brand-red);
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 0 5px var(--hg-brand-red);
    font-family: var(--hg-font-family);
}

.logo-container {
    position: relative;
    display: inline-block;
}

.by-hadengrey {
    position: absolute;
    top: 100%;
    right: 0;
    font-size: 0.75rem;
    font-weight: 400;
    font-family: var(--hg-font-family);
    white-space: nowrap;
    margin-top: -0.25rem;
}

.by-hadengrey .haden {
    color: var(--hg-white);
}

.by-hadengrey .grey {
    color: var(--hg-brand-red);
}

/* Header */
.hg-header {
    border-bottom: 1px solid var(--hg-secondary-gray);
    background-color: var(--hg-primary-dark);
}

/* Buttons */
.hg-btn-primary {
    background-color: var(--hg-brand-red);
    border: 2px solid var(--hg-brand-red);
    border-radius: var(--hg-border-radius-button);
    color: var(--hg-white);
    font-weight: bold;
    font-family: var(--hg-font-family);
    transition: var(--hg-transition);
    padding: 1rem 2rem;
    cursor: pointer;
}

.hg-btn-primary:hover {
    background-color: var(--hg-secondary-gray);
    border-color: var(--hg-secondary-gray);
    color: var(--hg-white);
}

/* Cards */
.hg-card {
    background-color: var(--hg-navigation-dark);
    border: 2px solid var(--hg-brand-red);
    border-radius: var(--hg-border-radius-card);
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hg-card-gradient {
    background: linear-gradient(135deg, var(--hg-primary-dark) 0%, var(--hg-navigation-dark) 50%, var(--hg-primary-dark) 100%);
    border: 2px solid var(--hg-brand-red);
    border-radius: var(--hg-border-radius-card);
}

/* Form Elements */
.hg-input {
    background-color: var(--hg-primary-dark);
    border: 2px solid var(--hg-secondary-gray);
    border-radius: var(--hg-border-radius-button);
    color: var(--hg-white);
    font-family: var(--hg-font-family);
    padding: 1rem 1.5rem;
    transition: var(--hg-transition);
}

.hg-input:focus {
    outline: none;
    border-color: var(--hg-brand-red);
}

.hg-input::placeholder {
    color: var(--hg-medium-gray);
}

/* Search Form */
.hg-search-form {
    background-color: var(--hg-navigation-dark);
    border: 2px solid var(--hg-brand-red);
    border-radius: var(--hg-border-radius-card);
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hg-search-input-group {
    border: 2px solid var(--hg-brand-red);
    border-radius: var(--hg-border-radius-button);
    overflow: hidden;
    display: flex;
}

.hg-search-input {
    background-color: var(--hg-primary-dark);
    border: none;
    color: var(--hg-white);
    font-family: var(--hg-font-family);
    padding: 1rem 1.5rem;
    flex: 1;
}

.hg-search-input:focus {
    outline: none;
}

.hg-search-button {
    background-color: var(--hg-brand-red);
    border: 2px solid var(--hg-brand-red);
    color: var(--hg-white);
    font-weight: bold;
    font-family: var(--hg-font-family);
    padding: 1rem 2rem;
    border-radius: 0 var(--hg-border-radius-button) var(--hg-border-radius-button) 0;
    transition: var(--hg-transition);
    cursor: pointer;
}

.hg-search-button:hover {
    background-color: var(--hg-secondary-gray);
    border-color: var(--hg-secondary-gray);
}

/* Report Sections */
.hg-section {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 2rem 0;
    margin-bottom: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--hg-secondary-gray);
}

.hg-section:last-child {
    border-bottom: none;
}

.hg-section-header {
    font-size: var(--hg-font-size-h2);
    line-height: var(--hg-line-height-headings);
    font-weight: 500;
    color: var(--hg-light-gray);
    font-family: var(--hg-font-family);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.hg-section-header svg {
    width: 2rem;
    height: 2rem;
    margin-right: 0.75rem;
}

/* Section Color Variants - Clean Line Design */
.hg-section-ssl .hg-section-header,
.hg-section-subdomains .hg-section-header,
.hg-section-files .hg-section-header,
.hg-section-exploits .hg-section-header {
    color: var(--hg-light-gray);
}

/* Subtle section identification through typography only */
.hg-section-ssl .hg-section-header::before {
    content: "";
    opacity: 0.7;
}

.hg-section-subdomains .hg-section-header::before {
    content: "";
    opacity: 0.7;
}

.hg-section-files .hg-section-header::before {
    content: "";
    opacity: 0.7;
}

.hg-section-exploits .hg-section-header::before {
    content: "";
    opacity: 0.7;
}

/* Subsection Cards */
.hg-subsection {
    background-color: var(--hg-navigation-dark);
    border: 1px solid var(--hg-brand-red);
    border-radius: 0.5rem;
    padding: 1rem;
    height: fit-content;
    align-self: start;
}

.hg-subsection-header {
    font-size: var(--hg-font-size-h5);
    line-height: var(--hg-line-height-headings);
    font-weight: 500;
    color: var(--hg-medium-gray);
    font-family: var(--hg-font-family);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.hg-subsection-header svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

/* Data Cards */
.hg-data-card {
    background-color: var(--hg-primary-dark);
    border-left: 2px solid var(--hg-secondary-gray);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    height: fit-content;
    align-self: start;
}

.hg-data-item {
    background-color: var(--hg-navigation-dark);
    border-radius: 0.5rem;
    padding: 0.2rem;
    margin-bottom: 0.5rem;
}

/* Text Colors */
.hg-text-primary {
    color: var(--hg-brand-red);
}

.hg-text-secondary {
    color: var(--hg-secondary-gray);
}

.hg-text-light {
    color: var(--hg-light-gray);
}

.hg-text-muted {
    color: var(--hg-medium-gray);
}

.hg-text-white {
    color: var(--hg-white);
}

/* Background Colors */
.hg-bg-primary {
    background-color: var(--hg-primary-dark);
}

.hg-bg-dark {
    background-color: var(--hg-navigation-dark);
}

.hg-bg-light {
    background-color: var(--hg-light-bg);
}

/* Badges */
.hg-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: bold;
    font-family: var(--hg-font-family);
}

.hg-badge-primary {
    background-color: var(--hg-brand-red);
    color: var(--hg-white);
}

.hg-badge-blue,
.hg-badge-green,
.hg-badge-yellow,
.hg-badge-purple,
.hg-badge-orange,
.hg-badge-cyan {
    background-color: var(--hg-navigation-dark);
    color: var(--hg-white);
    border: 1px solid var(--hg-secondary-gray);
}

/* Subtle differentiation through opacity and text styling */
.hg-badge-blue {
    opacity: 0.9;
}

.hg-badge-green {
    opacity: 0.85;
}

.hg-badge-yellow {
    opacity: 0.8;
    font-style: italic;
}

.hg-badge-purple {
    opacity: 0.75;
}

.hg-badge-orange {
    opacity: 0.7;
}

.hg-badge-cyan {
    opacity: 0.65;
}

/* Executive Summary */
.hg-executive-summary {
    background: linear-gradient(135deg, var(--hg-primary-dark) 0%, var(--hg-navigation-dark) 50%, var(--hg-primary-dark) 100%);
    border: 2px solid var(--hg-brand-red);
    border-radius: var(--hg-border-radius-card);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hg-metric-card {
    background-color: var(--hg-navigation-dark);
    border: 1px solid var(--hg-brand-red);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--hg-transition);
    height: fit-content;
    align-self: start;
}

.hg-metric-card:hover {
    background-color: var(--hg-primary-dark);
}

/* Loading Spinner */
.hg-spinner {
    color: var(--hg-brand-red);
}

/* No Data Message */
.hg-no-data {
    background-color: var(--hg-navigation-dark);
    border: 2px solid var(--hg-brand-red);
    border-radius: var(--hg-border-radius-card);
    padding: 2rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --hg-font-size-h1: 36px;
        --hg-font-size-h2: 28px;
        --hg-font-size-h3: 32px;
        --hg-font-size-body: 18px;
    }
    
    .hg-card,
    .hg-search-form {
        padding: 1.5rem;
    }
    
    .hg-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    :root {
        --hg-font-size-h1: 28px;
        --hg-font-size-h2: 24px;
        --hg-font-size-h3: 28px;
        --hg-font-size-body: 16px;
    }
    
    .hg-card,
    .hg-search-form {
        padding: 1rem;
    }
    
    .hg-search-input-group {
        flex-direction: column;
    }
    
    .hg-search-button {
        border-radius: 0 0 var(--hg-border-radius-button) var(--hg-border-radius-button);
    }
}

/* Utility Classes */
.hg-transition {
    transition: var(--hg-transition);
}

.hg-shadow {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hg-border-radius {
    border-radius: var(--hg-border-radius-card);
}

.hg-font-mono {
    font-family: 'Roboto Mono', monospace;
}

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--hg-primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--hg-secondary-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hg-brand-red);
}

/* Grid Layout Fixes - Prevent cards from stretching to fill container height */
.grid {
    align-items: start;
}

.grid > * {
    height: fit-content;
    align-self: start;
}

/* Ensure grid items don't stretch in CSS Grid layouts */
[class*="grid-cols"] {
    align-items: start;
}

[class*="grid-cols"] > * {
    height: fit-content;
    align-self: start;
}

/* Specific fixes for common grid patterns */
.grid-cols-1 > *,
.grid-cols-2 > *,
.grid-cols-3 > *,
.grid-cols-4 > *,
.grid-cols-5 > *,
.grid-cols-6 > * {
    height: fit-content;
    align-self: start;
}

/* Responsive grid fixes */
.md\:grid-cols-2 > *,
.md\:grid-cols-3 > *,
.md\:grid-cols-4 > *,
.lg\:grid-cols-3 > *,
.lg\:grid-cols-4 > *,
.xl\:grid-cols-5 > *,
.xl\:grid-cols-6 > * {
    height: fit-content;
    align-self: start;
}

/* CSP-compliant utility classes to replace inline styles */
.hg-hidden {
    display: none;
}

.hg-title-large {
    font-size: 2rem;
}

.hg-checkbox-styled {
    accent-color: var(--hg-brand-red);
    background-color: var(--hg-primary-dark);
    border: 2px solid var(--hg-secondary-gray);
    border-radius: 4px;
}

.hg-btn-secondary {
    background-color: var(--hg-secondary-gray);
    border-color: var(--hg-secondary-gray);
}

