/* IOA Ozone Generation Widget Styles */

.ozone-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ozone-container {
    /* Brand Color Palette */
    --color-primary-dark: #2E3A61;      /* Main titles, primary buttons */
    --color-accent: #0AA7FF;            /* Subtitles, icons, highlighted links */
    --color-link: #0563C1;              /* Standalone text links */
    --color-muted-accent: #446396;      /* Less important titles/icons */
    --color-light-bg: #f8fafcv;         /* Standard light background */
    --color-alt-bg-1: #E2E8F0;          /* Alternating light BG 1 */
    --color-alt-bg-2: #DAE7F6;          /* Alternating light BG 2 */
    --color-dark-bg: #1F2937;           /* Dark theme background */
    --color-text-primary: #111827;      /* Primary text */
    --color-text-secondary: #374151;    /* Secondary text */
    
    /* Apple-Clean Design System */
    --color-surface: #ffffff;
    --color-border: #e5e5e7;
    --color-text-tertiary: #86868b;
    
    /* Clean Shadow Progression */
    --shadow-minimal: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-elevated: 0 4px 16px rgba(0, 0, 0, 0.08);
    
    /* Standard Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-section: 5rem;
    
    /* Clean Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Base Styling with Standard Layout */
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--color-text-secondary);
    letter-spacing: -0.005em;
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
    background-color: var(--color-surface);
    position: relative;
}

/* Typography Scale - Subtitle */
.ozone-section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: var(--color-primary-dark);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Typography Scale - Metadata/Tags */
.ozone-tag {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.ozone-tag.current {
    background-color: rgba(10, 167, 255, 0.08);
    color: var(--color-accent);
}

.ozone-tag.archive {
    background-color: rgba(68, 99, 150, 0.08);
    color: var(--color-muted-accent);
}

.ozone-section-title:hover .ozone-tag {
    opacity: 0.8;
}

.ozone-tag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    margin-right: 4px;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}
.ozone-tag-icon svg {
    width: 0.8em;
    height: 0.8em;
    fill: currentColor;
}


.ozone-section-title:hover .ozone-tag-icon {
    opacity: 0.6;
}

/* Clean Papers Grid */
.ozone-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.ozone-paper {
    display: block;
    padding: var(--space-xl);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-minimal);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
}

.ozone-paper:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(10, 167, 255, 0.12);
    text-decoration: none;
}

.ozone-paper.archived {
    border-left: 2px solid var(--color-muted-accent);
}

.ozone-paper.archived:hover {
    border-left-color: var(--color-muted-accent);
    border-left-width: 3px;
    border-color: var(--color-border); /* Prevent hover border from overriding */
    box-shadow: var(--shadow-soft); /* Keep hover shadow */
    transform: translateY(-2px); /* Keep hover transform */
}


/* Typography Scale - Paper Title (Body Paragraph size) */
.ozone-paper-title {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: var(--color-link);
    line-height: 1.4;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.005em;
    transition: all 0.2s ease;
}

.ozone-paper.archived .ozone-paper-title {
    color: var(--color-muted-accent);
}

.ozone-paper:hover .ozone-paper-title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
/* Archived items should not get underline on hover if they are not links */
.ozone-paper.archived:hover .ozone-paper-title {
    text-decoration: none;
}
a.ozone-paper.archived:hover .ozone-paper-title {
    text-decoration: underline; /* But if an archived item is a link, it should still underline */
}


/* Typography Scale - Secondary Text */
.ozone-paper-authors {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

/* Typography Scale - Secondary Text */
.ozone-paper-journal {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.4;
    color: var(--color-text-tertiary);
    font-style: italic;
    margin-bottom: var(--space-sm);
}

/* Typography Scale - Metadata */
.ozone-paper-meta {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.4;
    color: var(--color-text-tertiary);
}

/* Typography Scale - Metadata */
.ozone-year-badge {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background-color: rgba(245, 245, 247, 0.8);
    color: var(--color-text-secondary);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    opacity: 0.7;
}

/* Section Spacing */
.ozone-section {
    margin-bottom: var(--space-xl);
}

.ozone-section:first-child {
    margin-top: var(--space-lg);
}

.ozone-section:last-child {
    margin-bottom: 0;
}

/* Clean External Link Icon */
.external-icon {
    width: 14px;
    height: 14px;
    margin-left: var(--space-xs);
    fill: currentColor;
    opacity: 0.4;
    transition: opacity 0.2s ease;
    display: inline-block;
    vertical-align: middle;
}

.ozone-paper:hover .external-icon {
    opacity: 0.6;
}

/* Clean Responsive Design */
@media (max-width: 768px) {
    .ozone-container {
        padding: var(--space-xl) var(--space-lg);
    }
    
    .ozone-section-title {
        font-size: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .ozone-paper {
        padding: var(--space-lg);
    }
    
    .ozone-year-badge {
        position: static;
        display: inline-block;
        margin-bottom: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .ozone-container {
        padding: var(--space-lg) var(--space-md);
    }
    
    .ozone-paper-title {
        font-size: 15px;
    }
    
    .ozone-paper {
        padding: var(--space-md);
    }
}