/* Chosen Palette: House of Loyola (Jesuit Official Colors) */
/* Colors: 
    Background: #FAF9F6 (Off-white/Paper)
    Primary Text: #2D3748 (Dark Slate)
    Primary Maroon: #8D0034 (Loyola Maroon - House of Loyola)
    Accent Gold: #D4AF37 (Jesuit Gold - Glory of God)
    Deep Black: #1A1A1A (IHS Symbol Black)
    Light Accent: #F5E6D3 (Warm cream for backgrounds)
*/

/* New Color Variables - Jesuit Palette */
:root {
    --jesuit-maroon: #8D0034;
    --jesuit-gold: #D4AF37;
    --jesuit-black: #1A1A1A;
    --jesuit-cream: #F5E6D3;
    --text-primary: #2D3748;
    --bg-paper: #FAF9F6;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans', sans-serif;
    background-color: #FAF9F6;
    color: #2D3748;
    line-height: 1.7;
}

h1, h2, h3, .serif {
    font-family: 'Noto Serif', serif;
}

.chart-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    height: 400px;
    max-height: 400px;
}

.card-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.card-shadow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.step-active {
    border-color: #D4AF37;
    color: #8D0034;
    font-weight: bold;
}

.step-inactive {
    border-color: #CBD5E0;
    color: #A0AEC0;
}

/* Hide scrollbar for clean UI */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0; 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0; 
}

/* Smooth fade-in animation for tab content */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-in-out;
}

/* Academic enhancements */
.prose {
    max-width: 65ch;
}

.prose p {
    margin-bottom: 1.25em;
}

.prose strong {
    color: #8D0034;
    font-weight: 600;
}

/* Academic typography improvements */
article {
    font-size: 16px;
    line-height: 1.8;
}

article p {
    margin-bottom: 1.5em;
    text-align: justify;
    hyphens: auto;
}

article h2, article h3, article h4 {
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3;
}

/* Blockquote academic styling */
blockquote {
    font-style: italic;
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 4rem;
    color: rgba(214, 158, 46, 0.2);
    position: absolute;
    left: -10px;
    top: -20px;
    font-family: Georgia, serif;
}

/* Superscript for citations */
sup {
    font-size: 0.7em;
    vertical-align: super;
    font-weight: bold;
}

/* Academic footnotes */
.footnote {
    font-size: 0.875rem;
    color: #718096;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

/* Sidebar navigation sticky */
aside nav a {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    display: block;
}

aside nav a:hover {
    background-color: rgba(214, 158, 46, 0.1);
}

/* Pull quote styling */
.pull-quote {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2C5282;
    font-family: 'Noto Serif', serif;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    position: relative;
}

/* Section numbering */
.section-number {
    font-family: 'Noto Serif', serif;
    color: #D69E2E;
    font-weight: bold;
}

/* Table styling */
table {
    border-collapse: collapse;
}

table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

/* Hover effects for interactive elements */
.hover\:shadow-xl:hover {
    transform: translateY(-4px);
}

/* Background pattern for hero */
.bg-pattern {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Stepper enhancement */
.step-btn {
    position: relative;
    cursor: pointer;
}

.step-btn:hover {
    transform: scale(1.1);
}

.step-btn.step-active {
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
}

/* Landing page animations */
@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out;
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out;
    animation-fill-mode: both;
}

/* Group hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Print styles for academic use */
@media print {
    nav, footer {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    h2, h3 {
        page-break-after: avoid;
    }
}
