/*
File: styles.css
Version: 2.0.0
Location: /website/styles.css
Purpose: Main stylesheet for TrustGenAI Research Centre website
Domain: Core
Created: 2024-12-24
Modified: 2024-12-24

VERSION HISTORY:
===============
v1.0.0 (2024-12-24):
  - Initial creation
v1.1.0 (2024-12-24):
  - Enhanced responsive design
v1.2.0 (2024-12-24):
  - Added comprehensive styles
v2.0.0 (2024-12-24):
  - Complete refactor following AI01.md rules
  - Removed from inline HTML
  - Organized by component

RESEARCH CONTEXT:
================
- Research Question: Professional presentation of research outputs
- Framework Component: Dissemination and accessibility
- Related Papers: All TrustGenAI publications

FUNCTIONS INDEX:
================
N/A - CSS file

DEPENDENCIES:
============
- Used by all HTML pages

EndFile
*/

/* ========================================
   1. CSS VARIABLES & RESET
   ======================================== */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --max-width: 1200px;
    --spacing-unit: 1rem;
}

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

/* ========================================
   2. TYPOGRAPHY
   ======================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: var(--spacing-unit);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-unit);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color);
}

/* ========================================
   3. LAYOUT COMPONENTS
   ======================================== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--light-bg);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #666;
}

/* ========================================
   4. NAVIGATION
   ======================================== */

.navbar {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--secondary-color);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.2rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.08);
    transform: translateY(-1px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* ========================================
   5. HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-description {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   6. BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--light-bg);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-tertiary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-tertiary:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-more {
    display: inline-block;
    margin-top: 2rem;
    font-weight: 500;
}

.btn-copy {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-copy:hover {
    background: #2980b9;
}

/* ========================================
   7. RAID-T FRAMEWORK
   ======================================== */

.framework-grid {
    margin-bottom: 3rem;
}

.framework-top-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.framework-bottom-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 66.66%;
    margin: 0 auto;
}

.framework-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-align: center;
    cursor: pointer;
    color: var(--text-color);
}

.framework-card h3,
.framework-card p {
    color: var(--text-color);
}

.framework-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    color: var(--secondary-color)
}

.framework-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.framework-visualization {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ========================================
   8. DOMAINS GRID
   ======================================== */

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.domain-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    color: var(--secondary-color)
}

.domain-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.domain-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--light-bg);
    border-radius: 3px;
    font-size: 0.75rem;
}

.tag-active {
    background: var(--success-color);
    color: var(--white);
}

/* ========================================
   9. METHODS SECTION
   ======================================== */

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.method-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    color: var(--text-color);
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    color: var(--secondary-color)
}

.methods-comparison {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ========================================
   10. PUBLICATIONS
   ======================================== */

.publications-grid {
    display: grid;
    gap: 2rem;
}

.publication-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    color: var(--text-color);
}

.publication-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.publication-primary {
    border-left: 4px solid var(--accent-color);
}

.publication-badge {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 1rem;
}

/* ========================================
   11. COLLABORATION
   ======================================== */

.collab-header {
    text-align: center;
    margin-bottom: 3rem;
}

.collab-segments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.segment-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ========================================
   12. ABOUT SECTION
   ======================================== */

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.about-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.research-impact {
    text-align: center;
    margin: 3rem 0;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.stat-label {
    display: block;
    color: #666;
}

.citation-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.citation {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
}

/* ========================================
   13. FOOTER
   ======================================== */

.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   14. RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .framework-top-row,
    .framework-bottom-row {
        grid-template-columns: 1fr;
    }
    
    .framework-bottom-row {
        max-width: 100%;
    }
}

/* ========================================
   15. CHART / Bar
   ======================================== */
.radar-chart-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: center;
}

.radar-chart-container > div:last-child {
    width: 400px;
    height: 400px;
}

#raidtRadar {
    width: 400px !important;
    height: 400px !important;
}

.methods-comparison {
    max-width: 900px;
    margin: 3rem auto 0;
}

#methodsChart {
    width: 900px !important;
    height: 400px !important;
    max-width: 100%;
}