/* SCET - Presson Template Redesign v4.0 */
/* Modern SaaS Style - Clean, Minimal, Professional */

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

:root {
    /* Dark Theme Color Scheme */
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    
    /* Dark Backgrounds */
    --bg-dark: #0f172a;
    --bg-dark-secondary: #1e293b;
    --bg-dark-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    
    --border-color: #334155;
    --border-light: #475569;
    
    /* Status Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* Shadows - Enhanced for dark theme */
    --shadow-sm: 0px 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0px 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0px 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0px 8px 30px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Spacing Scale (8px grid) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    --space-10: 80px;
    --space-12: 96px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   NAVBAR (70px height)
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    height: 70px;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-3);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-light);
    background: var(--bg-dark-tertiary);
}

.nav-link.active {
    color: var(--primary-light);
    background: var(--bg-dark-tertiary);
}

/* ============================================
   PAGE HEADER (for internal pages)
   ============================================ */

.page-header {
    padding: var(--space-8) var(--space-3) var(--space-6);
    text-align: center;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(30, 41, 59, 0.8) 100%);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.page-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    flex: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: var(--space-12) var(--space-3) var(--space-8);
    text-align: center;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(30, 41, 59, 0.8) 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Home Page - Enhanced Hero */
.hero-title-large {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    letter-spacing: -0.03em;
    animation: fadeInUp 0.6s ease-out;
}

.hero-subtitle-large {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SEARCH SECTION
   ============================================ */

.search-section {
    padding: var(--space-8) var(--space-3);
    background: var(--bg-dark);
}

.search-container {
    max-width: 900px;
    margin: 0 auto;
}

.search-box {
    margin-bottom: var(--space-4);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 5px 5px 5px 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s ease;
}

.search-input-wrapper:focus-within {
    box-shadow: var(--shadow-glow), var(--shadow-xl);
    border-color: var(--primary-color);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-primary);
    background: transparent;
    padding: 18px 0;
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0 32px;
    height: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.search-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 18px;
}

.btn-text {
    font-weight: 600;
}

/* Search Options */
.search-options {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
    flex-wrap: wrap;
}

.filter-select {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:hover {
    border-color: var(--primary-color);
    background: var(--bg-card-hover);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Home Page - Enhanced Search Section */
.search-section-home {
    padding: var(--space-10) var(--space-3) var(--space-12);
    background: var(--bg-dark);
}

.search-box-prominent {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-xl), 0 0 60px rgba(59, 130, 246, 0.08);
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.search-powered-text {
    text-align: center;
    margin-top: var(--space-3);
    font-size: 14px;
    color: var(--text-tertiary);
    font-style: italic;
}

/* Feature Highlights Section */
.feature-highlights-section {
    padding: var(--space-12) var(--space-3);
    background: var(--bg-dark-secondary);
}

.feature-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow), var(--shadow-xl);
    border-color: var(--primary-color);
    background: var(--bg-card-hover);
}

.feature-highlight-icon {
    font-size: 48px;
    margin-bottom: var(--space-3);
    display: block;
}

.feature-highlight-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.feature-highlight-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Status Examples Section */
.status-examples-section {
    padding: var(--space-12) var(--space-3);
    background: var(--bg-dark);
}

.status-examples-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

.status-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
    max-width: 1200px;
    margin: 0 auto;
}

.status-example-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    text-align: center;
    transition: all 0.2s ease;
}

.status-example-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.status-example-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: var(--space-3);
    letter-spacing: 0.5px;
}

.status-example-badge.badge-protected {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 2px solid rgba(239, 68, 68, 0.4);
}

.status-example-badge.badge-public {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 2px solid rgba(16, 185, 129, 0.4);
}

.status-example-badge.badge-unknown {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border: 2px solid rgba(245, 158, 11, 0.4);
}

.status-example-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Call to Action Section */
.cta-section {
    padding: var(--space-16) var(--space-3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(37, 99, 235, 0.04) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: 18px 48px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* ============================================
   CORRECTION NOTICE
   ============================================ */

.correction-notice {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-2);
    margin-top: var(--space-2);
    font-size: 14px;
    color: var(--text-secondary);
}

.correction-notice a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.correction-notice a:hover {
    text-decoration: underline;
}

/* ============================================
   LOADING INDICATOR
   ============================================ */

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: var(--space-3);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   AI EXPLANATION
   ============================================ */

.ai-explanation {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    margin-top: var(--space-3);
    display: flex;
    gap: var(--space-2);
    align-items: start;
}

.ai-icon {
    font-size: 24px;
}

.ai-explanation p {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   SEARCH RESULTS
   ============================================ */

.search-results {
    margin-top: var(--space-4);
}

.results-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-4);
    align-items: start;
}

.results-main {
    min-width: 0;
}

.results-heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

/* Result Card - Presson Style */
.result-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.result-card:hover::before {
    opacity: 1;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    border-color: var(--primary-color);
    background: var(--bg-card-hover);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--space-2);
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.result-creator {
    font-size: 14px;
    color: var(--text-secondary);
}

.result-meta {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-2);
    align-items: center;
}

.result-year,
.result-type,
.result-source {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 10px;
    background: var(--bg-dark-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-protected {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.badge-public {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.3);
}

.badge-unknown {
    background: rgba(156, 163, 175, 0.15);
    color: var(--text-tertiary);
    border-color: var(--border-color);
}

.similarity-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ============================================
   QUICK SEARCHES BOX
   ============================================ */

.quick-searches-box {
    position: sticky;
    top: 90px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    box-shadow: var(--shadow-md);
}

.quick-searches-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-searches-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-searches-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.quick-search-btn {
    background: var(--bg-dark-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-search-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
    color: var(--primary-light);
    transform: translateX(4px);
}

.quick-searches-divider {
    height: 1px;
    background: var(--border-color);
    margin: var(--space-3) 0;
}

.category-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-1);
}

.category-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: inherit;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ============================================
   SUGGESTIONS
   ============================================ */

.suggestions {
    margin-top: var(--space-3);
    padding: var(--space-2);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-secondary);
}

.suggestions span {
    margin-right: var(--space-1);
}

#suggestionsList {
    display: inline-flex;
    gap: var(--space-1);
    flex-wrap: wrap;
}

/* ============================================
   SMART TAG SECTION
   ============================================ */

.smart-tag-section {
    padding: var(--space-8) var(--space-3);
    background: var(--bg-dark-secondary);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-heading {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    text-align: center;
}

.smart-tag-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    padding: var(--space-10) var(--space-3);
    background: var(--bg-dark);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: var(--space-8);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    transition: all 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-md);
    border-color: var(--primary-color);
    background: var(--bg-card-hover);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: var(--space-2);
    display: block;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.feature-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.novelty-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    max-width: 900px;
    margin: 0 auto;
}

.novelty-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.novelty-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
}

/* ============================================
   CONTENT SECTIONS (for internal pages)
   ============================================ */

.content-section {
    max-width: 900px;
    margin: 0 auto var(--space-8);
}

.content-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-3);
}

.content-list {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-left: var(--space-4);
    margin-bottom: var(--space-3);
}

.content-list li {
    margin-bottom: var(--space-2);
}

.content-list strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-dark-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-8) var(--space-3) var(--space-4);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.footer-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-link {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden {
    display: none !important;
}

/* ============================================
   REPORT PAGE STYLES
   ============================================ */

.report-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    max-width: 1000px;
    margin: 0 auto;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-color);
}

.report-title-section {
    flex: 1;
}

.report-work-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.report-creator {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
}

.report-status-badge .badge {
    font-size: 14px;
    padding: 8px 16px;
}

.report-metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding: var(--space-3);
    background: var(--bg-dark-tertiary);
    border-radius: var(--radius-md);
}

.report-meta-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.meta-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.meta-value {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.report-section {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-color);
}

.report-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.report-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.report-status-details .status-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.expiry-info {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.expiry-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    flex: 1;
    min-width: 200px;
    padding: var(--space-3);
    background: var(--bg-dark-secondary);
    border-radius: var(--radius-md);
}

.expiry-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.expiry-value {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
}

.confidence-container {
    padding: var(--space-3);
    background: var(--bg-dark-secondary);
    border-radius: var(--radius-md);
}

.confidence-bar-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.confidence-bar {
    flex: 1;
    height: 24px;
    background: var(--bg-dark-tertiary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color) 0%, var(--primary-color) 100%);
    transition: width 0.3s ease;
}

.confidence-percentage {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 50px;
}

.confidence-explanation {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.reasoning-box {
    padding: var(--space-3);
    background: var(--bg-dark-secondary);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.reasoning-box ul {
    margin-left: var(--space-4);
    margin-top: var(--space-2);
}

.reasoning-box li {
    margin-bottom: var(--space-1);
}

.sources-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.source-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-dark-secondary);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-secondary);
}

.source-icon {
    font-size: 18px;
}

.btn-primary, .btn-secondary {
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
}

.btn-secondary:hover {
    background: var(--bg-card-hover) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-1px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }

    .hero-title-large {
        font-size: 36px;
    }

    .hero-subtitle-large {
        font-size: 17px;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-subtitle {
        font-size: 16px;
    }

    .cta-button {
        padding: 14px 32px;
        font-size: 16px;
    }

    .status-examples-title {
        font-size: 24px;
    }

    .feature-highlights-grid,
    .status-examples-grid {
        grid-template-columns: 1fr;
    }

    .search-box-prominent {
        padding: var(--space-4);
    }
    
    .search-input-wrapper {
        flex-direction: column;
        padding: 12px;
        border-radius: var(--radius-lg);
    }
    
    .search-input {
        width: 100%;
        padding: 12px 8px;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
        border-radius: var(--radius-md);
    }
    
    .search-options {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .nav-links {
        gap: var(--space-1);
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .results-container {
        grid-template-columns: 1fr;
    }
    
    .quick-searches-box {
        position: relative;
        top: 0;
        order: -1;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 24px;
    }
    
    .hero {
        padding: var(--space-8) var(--space-2) var(--space-6);
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

/* YouTube Music Copyright Checker */
.youtube-check-box {
    display: grid;
    gap: var(--space-4);
    max-width: 980px;
    margin: 0 auto;
    padding: 26px;
    border-radius: 20px;
}

.youtube-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.youtube-check-page .search-container {
    max-width: 1100px;
}

.youtube-check-page .search-input {
    font-size: 17px;
    padding: 20px 0;
}

.youtube-check-page .search-input-wrapper {
    max-width: 920px;
    margin: 0 auto;
}

.youtube-check-page .input-label {
    text-align: center;
}

.youtube-check-page .youtube-form-grid .input-group:first-child {
    grid-column: 1 / -1;
}

.input-group {
    display: grid;
    gap: var(--space-2);
}

.input-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.youtube-check-actions {
    display: flex;
    justify-content: center;
}

.youtube-check-btn {
    min-width: 260px;
    height: 54px;
}

.youtube-legal-note {
    margin: 0;
    color: var(--gray-500);
    font-size: 13px;
    text-align: center;
}

.youtube-disclaimer-note {
    margin-top: 10px;
    color: var(--text-tertiary);
    text-align: center;
    font-size: 13px;
}

.music-result-card .smart-tag {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(12px);
}

.youtube-result-card {
    transition: all 0.2s ease;
}

.youtube-result-card:hover {
    transform: translateY(-4px);
    border-color: #2b3b52;
}

.youtube-media-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.youtube-thumb {
    width: 88px;
    height: 88px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid #2b3a50;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.youtube-media-title {
    font-size: 22px;
    line-height: 1.3;
    color: #f8fbff;
    margin-bottom: 4px;
}

.youtube-media-channel,
.youtube-media-artist {
    font-size: 14px;
    color: var(--text-secondary);
}

.music-card-grid {
    display: grid;
    gap: 12px;
    margin-bottom: var(--space-4);
}

.music-row {
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(15, 23, 42, 0.45);
}

.music-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.confidence-section {
    margin-top: 2px;
}

.yt-confidence-track {
    height: 10px;
    border-radius: 999px;
    background: #1f2937;
    overflow: hidden;
    border: 1px solid #2b3a50;
}

.yt-confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transition: width 0.3s ease;
}

.yt-confidence-meta {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 13px;
}

.yt-confidence-title {
    margin-top: 14px;
}

.yt-risk-meter-track {
    height: 12px;
    border-radius: 999px;
    background: #1f2937;
    overflow: hidden;
    border: 1px solid #2b3a50;
    margin-bottom: 8px;
}

.yt-risk-meter-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.yt-risk-meter-fill.badge-protected {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.yt-risk-meter-fill.badge-unknown {
    background: linear-gradient(90deg, #ca8a04, #f59e0b);
}

.yt-risk-meter-fill.badge-public {
    background: linear-gradient(90deg, #059669, #10b981);
}

.yt-risk-score {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 2px;
    letter-spacing: 0.02em;
}

.yt-reason-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.yt-reason-list li {
    color: var(--text-secondary);
    font-size: 14px;
}

.yt-meta-note {
    margin-top: 8px;
    color: var(--text-tertiary);
    font-size: 12px;
}

.yt-risk-note {
    margin-top: 10px;
    color: var(--text-tertiary);
    font-size: 13px;
}

.yt-smart-suggestion {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.08);
    color: #fcd34d;
    font-size: 14px;
}

.yt-smart-suggestion a {
    color: #93c5fd;
    margin-left: 6px;
    text-decoration: none;
    font-weight: 600;
}

.yt-smart-suggestion a:hover {
    text-decoration: underline;
}

.youtube-check-btn.is-loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.youtube-check-btn.is-loading .btn-text::after {
    content: '...';
}

@media (max-width: 768px) {
    .youtube-form-grid {
        grid-template-columns: 1fr;
    }

    .youtube-check-page .youtube-form-grid .input-group:first-child {
        grid-column: auto;
    }

    .youtube-media-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .youtube-thumb {
        width: 100%;
        max-width: 220px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .youtube-check-btn {
        width: 100%;
        min-width: 0;
    }
}

/* ============================================
   PREMIUM SAAS UI REFRESH
   ============================================ */

:root {
    --bg-dark: #0b0f19;
    --bg-dark-secondary: #0a0e18;
    --bg-dark-tertiary: #151c2d;
    --bg-card: #111827;
    --bg-card-hover: #141d31;
    --border-color: #1f2937;
    --border-light: #29374a;
    --text-secondary: #b7c1d3;
    --text-tertiary: #9ca3af;
    --shadow-glass: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body {
    background: linear-gradient(180deg, #0b0f19, #05070d);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        radial-gradient(circle at 20% 15%, rgba(59, 130, 246, 0.14), transparent 35%),
        radial-gradient(circle at 80% 5%, rgba(16, 185, 129, 0.07), transparent 25%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: auto, auto, 36px 36px, 36px 36px;
}

.header {
    background: rgba(8, 12, 22, 0.72);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    backdrop-filter: blur(14px);
}

.nav-link {
    border-radius: 999px;
}

.nav-link.active,
.nav-link:hover {
    background: rgba(37, 99, 235, 0.18);
    color: #dbeafe;
}

.page-header,
.hero {
    background: linear-gradient(180deg, rgba(5, 8, 16, 0.25) 0%, rgba(5, 7, 13, 0.04) 100%);
}

.page-title,
.hero-title,
.hero-title-large {
    letter-spacing: -0.03em;
}

.search-box,
.smart-tag-container,
.feature-card,
.feature-highlight-card,
.status-example-item,
.quick-searches-box,
.content-section,
.report-card,
.novelty-card {
    background: rgba(17, 24, 39, 0.78);
    border: 1px solid #1f2937;
    border-radius: 20px;
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(12px);
}

.feature-card:hover,
.feature-highlight-card:hover,
.status-example-item:hover,
.result-card:hover,
.content-section:hover {
    transform: translateY(-4px);
    transition: all 0.2s ease;
}

.search-input-wrapper {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid #243245;
    border-radius: 999px;
    box-shadow: var(--shadow-glass);
}

.search-btn,
.cta-button,
.category-btn,
.youtube-check-btn {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.32);
}

.search-btn:hover,
.cta-button:hover,
.category-btn:hover,
.youtube-check-btn:hover {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transform: translateY(-2px) scale(1.02);
}

.filter-select {
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid #29374a;
    border-radius: 14px;
}

.result-badge {
    border-radius: 999px;
    padding: 6px 12px;
}

.confidence-bar,
.confidence-bar-wrapper .confidence-bar {
    background: #1f2937;
}

.confidence-fill {
    background: linear-gradient(90deg, #2563eb, #3b82f6) !important;
}

.footer {
    background: rgba(5, 7, 13, 0.8);
    backdrop-filter: blur(8px);
}

/* Search Page Dashboard Grid */
.premium-search-section {
    padding-top: var(--space-6);
}

.premium-dashboard-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.premium-card {
    background: rgba(17, 24, 39, 0.78);
    border: 1px solid #1f2937;
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(12px);
    transition: all 0.2s ease;
    animation: fadeInUp 0.45s ease-out both;
}

.premium-dashboard-grid .premium-card:nth-child(2) {
    animation-delay: 0.08s;
}

.premium-dashboard-grid .premium-card:nth-child(3) {
    animation-delay: 0.14s;
}

.premium-dashboard-grid .premium-card:nth-child(4) {
    animation-delay: 0.2s;
}

.premium-card:hover {
    transform: translateY(-4px);
    border-color: #2a3a52;
}

.premium-card-head {
    margin-bottom: 16px;
}

.premium-card-title {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 6px;
    color: #f8fbff;
}

.premium-card-subtitle {
    font-size: 14px;
    color: #9ca3af;
}

.premium-search-card .search-box {
    margin-bottom: 0;
}

.premium-result-panel .search-results {
    margin-top: 0;
}

.premium-result-panel .results-heading {
    font-size: 18px;
    margin-bottom: 12px;
}

.premium-empty-result-state {
    margin-top: 8px;
    border: 1px dashed #2d3c52;
    border-radius: 16px;
    padding: 18px;
    background: rgba(15, 23, 42, 0.45);
}

.search-results:not(.hidden) + .premium-empty-result-state {
    display: none;
}

.premium-placeholder-title {
    font-size: 18px;
    font-weight: 600;
    color: #e5edf8;
    margin-bottom: 6px;
}

.premium-placeholder-text {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 14px;
}

.premium-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.premium-mini-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.premium-mini-card {
    border: 1px solid #253447;
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.7));
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.premium-mini-card h4 {
    font-size: 16px;
    color: #e5edf8;
    margin: 4px 0;
}

.premium-mini-card p {
    font-size: 13px;
    color: #9ca3af;
}

.mini-icon {
    font-size: 18px;
}

.premium-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.premium-quick-grid .quick-search-btn {
    border-radius: 14px;
    transform: none;
    background: rgba(30, 41, 59, 0.8);
}

.premium-quick-grid .quick-search-btn:hover {
    transform: translateY(-2px);
}

.premium-example-list {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.premium-example-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid #253447;
}

.premium-example-item div {
    color: #dbe7f7;
    font-weight: 500;
}

.premium-example-panel .category-buttons {
    margin-top: 2px;
}

.recent-reports-list {
    display: grid;
    gap: 12px;
}

.recent-report-item {
    display: block;
    text-decoration: none;
    border: 1px solid #253447;
    border-radius: 14px;
    padding: 14px;
    background: rgba(15, 23, 42, 0.45);
    transition: all 0.2s ease;
}

.recent-report-item:hover {
    transform: translateY(-2px);
    border-color: #3b82f6;
    background: rgba(18, 30, 52, 0.7);
}

.recent-report-title {
    color: #e5edf8;
    font-weight: 600;
    margin-bottom: 6px;
}

.recent-report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9ca3af;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .premium-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .premium-quick-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 36px;
    }
}

/* ============================================
   UX REFINEMENT LAYER
   ============================================ */

.page-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: rgba(37, 99, 235, 0.12);
    color: #dbeafe;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.page-header-search,
.report-page-header {
    padding-bottom: 44px;
}

.premium-dashboard-grid-ux {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.premium-search-card-main,
.premium-result-panel-main {
    min-height: 100%;
}

.card-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93c5fd;
}

.search-box-refined {
    margin-bottom: 0;
}

.search-ux-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-top: 18px;
    flex-wrap: wrap;
}

.search-ux-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-chip {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
}

.filters-toggle-btn {
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: rgba(37, 99, 235, 0.09);
    color: #dbeafe;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filters-toggle-btn:hover {
    background: rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
}

.search-options-collapsed {
    display: none;
}

.search-hint-refined {
    margin-top: 16px;
    color: #8fa3bd;
    font-size: 13px;
}

.search-hint-refined a {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 600;
}

.search-hint-refined a:hover {
    text-decoration: underline;
}

.results-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 0 4px;
}

.results-toolbar-title {
    font-size: 18px;
    font-weight: 700;
    color: #f8fbff;
}

.results-toolbar-text {
    margin-top: 6px;
    color: #97a6bb;
    font-size: 14px;
    line-height: 1.6;
}

.result-card-refined {
    width: 100%;
    text-align: left;
}

.result-card-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.result-rank-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.14);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 700;
}

.result-card.is-selected {
    border-color: #60a5fa;
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.32), 0 18px 38px rgba(37, 99, 235, 0.16);
    background: rgba(18, 29, 48, 0.95);
}

.result-card.is-selected::before {
    opacity: 1;
}

.result-card.is-selected .result-title {
    color: #ffffff;
}

.result-reason {
    margin: 0 0 14px;
    color: #b9c6d8;
    font-size: 14px;
    line-height: 1.6;
}

.result-card .result-year,
.result-card .result-type,
.result-card .result-source {
    padding: 6px 10px;
    font-weight: 500;
}

.result-card-skeleton {
    pointer-events: none;
}

.skeleton-line {
    height: 11px;
    border-radius: 999px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.14), rgba(148, 163, 184, 0.28), rgba(148, 163, 184, 0.14));
    background-size: 200% 100%;
    animation: shimmer 1.1s linear infinite;
}

.skeleton-line-sm {
    width: 30%;
}

.skeleton-line-md {
    width: 66%;
}

.skeleton-line-lg {
    width: 82%;
    height: 16px;
}

.skeleton-pills {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.skeleton-pill {
    width: 88px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.14), rgba(148, 163, 184, 0.28), rgba(148, 163, 184, 0.14));
    background-size: 200% 100%;
    animation: shimmer 1.1s linear infinite;
}

@keyframes shimmer {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -200% 0;
    }
}

.suggestions-refined {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 18px 20px;
    background: rgba(11, 17, 30, 0.72);
    border: 1px dashed rgba(148, 163, 184, 0.18);
    border-radius: 18px;
}

.suggestions-refined > span {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9fb2ca;
}

#suggestionsList {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.suggestion-tag {
    border: 1px solid rgba(96, 165, 250, 0.18);
    background: rgba(37, 99, 235, 0.08);
    color: #dbeafe;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.suggestion-tag:hover {
    background: rgba(37, 99, 235, 0.18);
}

.section-heading-wrap {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.section-heading-copy {
    max-width: 620px;
    color: #9caec4;
    font-size: 14px;
    line-height: 1.6;
}

.smart-tag-refined {
    padding: 28px;
}

.tag-intro-band {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.tag-intro-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tag-overline {
    color: #9fb2ca;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}

.tag-timeline-refined {
    display: grid;
    gap: 4px;
}

.tag-timeline-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #90a2b9;
}

.tag-summary-refined {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    padding: 16px 18px;
}

.tag-grid-refined {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.risk-assessment-refined {
    background: rgba(15, 23, 42, 0.46);
}

.tag-confidence-refined {
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    padding: 16px 18px;
}

.tag-confidence-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: #dbe7f7;
    font-weight: 600;
    flex-wrap: wrap;
}

.tag-reasoning-refined {
    border: 1px solid rgba(96, 165, 250, 0.15);
    background: rgba(11, 18, 32, 0.7);
}

.tag-actions-refined {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.quick-action-btn {
    border: 1px solid rgba(96, 165, 250, 0.18);
    background: rgba(37, 99, 235, 0.09);
    color: #e5efff;
    border-radius: 999px;
    padding: 11px 15px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    background: rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
}

.report-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.report-summary-panel {
    position: sticky;
    top: 96px;
}

.report-summary-card {
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--shadow-glass);
}

.report-summary-label {
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #9fb2ca;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.report-summary-badge {
    margin-bottom: 16px;
}

.report-summary-title {
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 8px;
    color: #ffffff;
}

.report-summary-subtitle {
    margin-bottom: 18px;
    color: #a9b8cc;
    font-size: 15px;
}

.report-summary-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.report-summary-item {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(17, 24, 39, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.09);
}

.report-summary-item-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #91a4be;
    font-weight: 700;
}

.report-summary-item-value {
    color: #eff6ff;
    font-weight: 600;
}

.report-summary-block {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.09);
}

.report-summary-block-label {
    display: block;
    margin-bottom: 10px;
    color: #9fb2ca;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.report-summary-confidence {
    height: 12px;
}

.report-summary-confidence-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    color: #dbe7f7;
    font-size: 13px;
    font-weight: 600;
}

.report-actions {
    display: grid;
    gap: 10px;
}

.report-action-link,
.report-action-btn {
    width: 100%;
    text-align: center;
    text-decoration: none;
}

.report-content-shell {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.report-card-refined {
    padding: 30px;
}

.report-lead {
    color: #e8f0ff;
    font-size: 18px;
    line-height: 1.7;
}

.report-section-intro {
    padding-bottom: 26px;
}

.report-disclaimer-card {
    background: linear-gradient(145deg, rgba(127, 29, 29, 0.16), rgba(51, 15, 15, 0.2));
}

.report-disclaimer-title {
    color: #fecaca;
}

.report-disclaimer-text {
    color: #f9d8d8;
}

.report-inline-link {
    color: #fecaca;
    text-decoration: underline;
}

.toast-region {
    position: fixed;
    top: 88px;
    right: 20px;
    z-index: 200;
    display: grid;
    gap: 10px;
}

.toast {
    min-width: 240px;
    max-width: 360px;
    padding: 12px 14px;
    border-radius: 14px;
    color: #eff6ff;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
    opacity: 0;
    transform: translateY(-6px);
    transition: all 0.22s ease;
    font-size: 14px;
    line-height: 1.5;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-color: rgba(16, 185, 129, 0.28);
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.28);
}

.toast-info {
    border-color: rgba(59, 130, 246, 0.28);
}

.error-message {
    color: var(--danger-color);
    text-align: center;
    padding: 20px;
}

@media (max-width: 1024px) {
    .premium-dashboard-grid-ux,
    .report-layout {
        grid-template-columns: 1fr;
    }

    .report-summary-panel {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .header-container {
        gap: 16px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .header {
        height: auto;
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .search-ux-toolbar,
    .results-toolbar,
    .section-heading-wrap,
    .tag-confidence-head,
    .report-summary-confidence-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .tag-grid-refined {
        grid-template-columns: 1fr;
    }

    .smart-tag-refined,
    .report-card-refined,
    .report-summary-card {
        padding: 22px;
    }

    .toast-region {
        left: 14px;
        right: 14px;
        top: auto;
        bottom: 16px;
    }

    .toast {
        min-width: 0;
        max-width: none;
    }
}

@media print {
    .header,
    .footer,
    .report-actions,
    .toast-region,
    .nav-links {
        display: none !important;
    }

    body,
    .app-container,
    .main-content,
    .content-section,
    .report-card,
    .report-summary-card {
        background: #ffffff !important;
        color: #111827 !important;
        box-shadow: none !important;
    }

    body::before {
        display: none !important;
    }

    .report-layout {
        grid-template-columns: 1fr;
    }

    .report-summary-panel {
        position: static;
    }

    .report-summary-item,
    .expiry-item,
    .reasoning-box,
    .source-item,
    .novelty-card {
        border: 1px solid #d1d5db !important;
        background: #ffffff !important;
        color: #111827 !important;
    }

    .page-title,
    .report-summary-title,
    .report-section-title,
    .meta-value,
    .report-lead {
        color: #111827 !important;
    }
}
