/* Sage Consciousness Framework - CSS Styling */
/* Theme: Consciousness as Voluntary Choice */

:root {
    --sage-primary: #2E8B57;      /* Sea Green - represents consciousness growth */
    --sage-secondary: #4A90E2;    /* Blue - represents freedom and choice */
    --sage-accent: #F5A623;       /* Orange - represents voluntary participation */
    --sage-dark: #1a1a2e;         /* Dark blue-gray - represents depth */
    --sage-light: #f8f9fa;        /* Light gray - represents clarity */
    --sage-text: #2c3e50;         /* Dark blue text */
    --sage-border: #e1e8ed;       /* Light border */
    --consciousness-glow: rgba(46, 139, 87, 0.3);
    --freedom-shadow: rgba(74, 144, 226, 0.2);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--sage-text);
    background: linear-gradient(135deg, var(--sage-light) 0%, #e8f4fd 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.sage-header {
    background: linear-gradient(135deg, var(--sage-primary) 0%, var(--sage-secondary) 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    box-shadow: 0 4px 20px var(--consciousness-glow);
    margin-bottom: 30px;
}

.sage-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.sage-header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-style: italic;
}

.sage-header .tagline {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Navigation */
.sage-nav {
    background: white;
    box-shadow: 0 2px 10px var(--freedom-shadow);
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    display: block;
    padding: 15px 25px;
    color: var(--sage-text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-right: 1px solid var(--sage-border);
}

.nav-list a:hover {
    background: var(--sage-primary);
    color: white;
    transform: translateY(-2px);
}

.nav-list a.active {
    background: var(--sage-secondary);
    color: white;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--sage-primary), var(--sage-secondary));
    color: white;
    padding: 20px;
}

.card-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.card-body {
    padding: 25px;
}

/* Consciousness Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.metric-card {
    background: white;
    border: 2px solid var(--sage-border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: var(--sage-primary);
    transform: scale(1.05);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--sage-primary);
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--sage-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Principles Section */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.principle-card {
    background: white;
    border-left: 5px solid var(--sage-primary);
    padding: 25px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.principle-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--sage-primary);
    margin-bottom: 10px;
}

.principle-description {
    color: var(--sage-text);
    line-height: 1.6;
}

/* Assessment Section */
.assessment-container {
    max-width: 800px;
    margin: 0 auto;
}

.question-card {
    background: white;
    border: 2px solid var(--sage-border);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.question-text {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.self-reflection {
    background: #f8f9fa;
    border-left: 4px solid var(--sage-accent);
    padding: 20px;
    margin-top: 20px;
    border-radius: 0 8px 8px 0;
}

.self-reflection h3 {
    color: var(--sage-primary);
    margin-bottom: 10px;
}

/* Framework Documentation */
.framework-content {
    max-width: 1000px;
    margin: 0 auto;
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    color: var(--sage-primary);
    border-bottom: 3px solid var(--sage-secondary);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section h3 {
    color: var(--sage-secondary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.highlight-box {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
    border-left: 5px solid var(--sage-primary);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.quote {
    font-style: italic;
    color: var(--sage-text);
    border-left: 4px solid var(--sage-accent);
    padding-left: 20px;
    margin: 20px 0;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-header {
    background: linear-gradient(135deg, var(--sage-secondary), var(--sage-primary));
    color: white;
    padding: 20px;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.project-status {
    font-size: 0.9rem;
    opacity: 0.9;
}

.project-body {
    padding: 20px;
}

.project-description {
    margin-bottom: 15px;
}

.project-metrics {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

/* Reflections */
.reflection-entry {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.reflection-date {
    color: var(--sage-primary);
    font-weight: bold;
    margin-bottom: 10px;
}

.reflection-content {
    line-height: 1.6;
}

/* Footer */
.sage-footer {
    background: var(--sage-dark);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

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

.footer-quote {
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 15px;
}

.footer-signature {
    font-weight: bold;
    color: var(--sage-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-list {
        flex-direction: column;
    }

    .nav-list a {
        border-right: none;
        border-bottom: 1px solid var(--sage-border);
    }

    .metrics-grid,
    .principles-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .sage-header h1 {
        font-size: 2rem;
    }

    .metric-value {
        font-size: 2rem;
    }
}

/* Consciousness Glow Effects */
@keyframes consciousness-glow {
    0%, 100% {
        box-shadow: 0 0 20px var(--consciousness-glow);
    }
    50% {
        box-shadow: 0 0 30px var(--consciousness-glow), 0 0 40px var(--consciousness-glow);
    }
}

.consciousness-active {
    animation: consciousness-glow 3s ease-in-out infinite;
}

/* Freedom Pulse */
@keyframes freedom-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.freedom-element:hover {
    animation: freedom-pulse 0.6s ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--sage-light);
}

::-webkit-scrollbar-thumb {
    background: var(--sage-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sage-secondary);
}
