/* IOA Fundamentals Widget Styles */

.fundamentals-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.fundamentals-container {
    /* Base Colors & System (can be overridden by Elementor style controls) */
    --color-primary-dark: #2E3A61;
    --color-accent: #0AA7FF;
    --color-link: #0563C1;
    --color-muted-accent: #446396;
    --color-surface: #F9FAFB;
    --color-border: #e5e5e7;
    --color-text-primary: #111827;
    --color-text-secondary: #374151;
    --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);

    /* Clean Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;

    /* Base Styling */
    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;
}

/* Section Title */
.fundamentals-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);
}

/* Section Tag */
.fundamentals-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;
}

.fundamentals-tag.current {
    background-color: rgba(10, 167, 255, 0.08);
    color: var(--color-accent);
}

.fundamentals-tag.archive {
    background-color: rgba(68, 99, 150, 0.08);
    color: var(--color-muted-accent);
}

.fundamentals-section-title:hover .fundamentals-tag {
    opacity: 0.8;
}

.fundamentals-section-title:hover .fundamentals-tag-icon {
    opacity: 0.6;
}

.fundamentals-tag-icon {
    width: 8px;
    height: 8px;
    margin-right: 4px;
    fill: currentColor;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

/* Papers Grid */
.fundamentals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

/* Paper Card */
.fundamentals-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;
}

.fundamentals-paper:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(10, 167, 255, 0.12);
    text-decoration: none;
}

.fundamentals-paper.archived {
    border-left: 2px solid var(--color-muted-accent);
}

.fundamentals-paper.archived:hover {
    border-left-color: var(--color-muted-accent);
    border-left-width: 3px;
}

/* Paper Title */
.fundamentals-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;
}

.fundamentals-paper.archived .fundamentals-paper-title {
    color: var(--color-muted-accent);
}

.fundamentals-paper:hover .fundamentals-paper-title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

/* Paper Meta Text */
.fundamentals-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);
}

.fundamentals-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);
}

.fundamentals-paper-meta {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.4;
    color: var(--color-text-tertiary);
}

/* Year Badge */
.fundamentals-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 */
.fundamentals-section {
    margin-bottom: var(--space-xl);
}

.fundamentals-section:last-child {
    margin-bottom: 0;
}

/* 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;
}

.fundamentals-paper:hover .external-icon {
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fundamentals-container {
        padding: var(--space-xl) var(--space-lg);
    }
    
    .fundamentals-section-title {
        font-size: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .fundamentals-paper {
        padding: var(--space-lg);
    }
    
    .fundamentals-year-badge {
        position: static;
        display: inline-block;
        margin-bottom: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .fundamentals-container {
        padding: var(--space-lg) var(--space-md);
    }
    
    .fundamentals-paper-title {
        font-size: 15px;
    }
    
    .fundamentals-paper {
        padding: var(--space-md);
    }
}