/* Custom Tailwind Configuration and Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --burnt-orange: #BF5700;
    --burnt-orange-dark: #9C4600;
    --burnt-orange-light: #D66F1A;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

/* Custom Tailwind Classes */
.bg-burnt-orange {
    background-color: var(--burnt-orange);
}

.bg-burnt-orange-dark {
    background-color: var(--burnt-orange-dark);
}

.text-burnt-orange {
    color: var(--burnt-orange);
}

.text-burnt-orange-light {
    color: var(--burnt-orange-light);
}

.border-burnt-orange {
    border-color: var(--burnt-orange);
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Hero Section with UT Tower Background */
.hero-section {
    background-image: url('assets/ut-tower.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 600px;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(191, 87, 0, 0.85) 0%, rgba(156, 70, 0, 0.9) 100%);
    z-index: 1;
}

.text-shadow {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.text-shadow-lg {
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.5);
}

/* Navigation Links */
.nav-link {
    color: white;
    transition: color 0.2s ease;
    font-weight: 500;
    text-decoration: none;
}

.nav-link:hover {
    color: #FED7AA;
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: white;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.mobile-nav-link:hover {
    background-color: var(--burnt-orange-dark);
}

/* Buttons */
.btn-primary {
    background-color: white;
    color: var(--burnt-orange);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #FFF5E6;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

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

/* Cards */
.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.resource-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--burnt-orange);
}

.resource-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.link-card {
    background-color: #F9FAFB;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB;
    text-decoration: none;
    display: block;
}

.link-card:hover {
    background-color: var(--burnt-orange);
    color: white;
    border-color: var(--burnt-orange);
}

.link-card:hover h4 {
    color: white;
}

.link-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
}

/* Resource Links */
.resource-link {
    color: #374151;
    transition: color 0.2s ease;
    text-decoration: underline;
    text-decoration-color: transparent;
}

.resource-link:hover {
    color: var(--burnt-orange);
    text-decoration-color: var(--burnt-orange);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--burnt-orange) 0%, var(--burnt-orange-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth Scrolling Offset for Fixed Nav */
section {
    scroll-margin-top: 80px;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--burnt-orange);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--burnt-orange-dark);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(191, 87, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--burnt-orange);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.5rem;
    }
}

/* Hover Effects for Committee Cards */
.card:hover {
    transform: translateY(-5px);
}

/* Focus States for Accessibility */
a:focus, button:focus {
    outline: 2px solid var(--burnt-orange);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    nav, footer {
        display: none;
    }
    
    .card, .resource-card {
        break-inside: avoid;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment if dark mode is desired
    body {
        background-color: #1a1a1a;
        color: #e5e5e5;
    }
    
    .card, .resource-card {
        background-color: #2a2a2a;
        color: #e5e5e5;
    }
    */
}

/* Collapsible TOC */
.toc-sub-list {
    list-style: none;
    padding-left: 0.75rem;
    margin: 0.25rem 0;
}

.toc-sub-list.collapsed {
    display: none;
}

.toc-item-row {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.toc-toggle {
    cursor: pointer;
    font-size: 0.55rem;
    color: var(--burnt-orange);
    flex-shrink: 0;
    width: 0.75rem;
    user-select: none;
}

/* Markdown Page Heading Colors */
.prose h1 {
    color: var(--burnt-orange) !important;
}

.prose h2 {
    color: #5C3317 !important;
}

.prose h3 {
    color: #6B6B6B !important;
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.bg-pattern {
    background-image: 
        linear-gradient(30deg, rgba(191, 87, 0, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(191, 87, 0, 0.05) 87.5%, rgba(191, 87, 0, 0.05)),
        linear-gradient(150deg, rgba(191, 87, 0, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(191, 87, 0, 0.05) 87.5%, rgba(191, 87, 0, 0.05));
    background-size: 80px 140px;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--burnt-orange);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
    z-index: 1000;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Image Fade In */
img {
    animation: fadeIn 0.5s ease-in;
}

/* Responsive Iframe */
.responsive-iframe {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.responsive-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
