/* Custom CSS for Zachary Fouts' site */

/* Base styles */
:root {
    --primary-color: #5277c3;
    --primary-hover: #4668a5;
    --text-color: #45505b;
    --light-bg: #f9fafb;
    --card-bg: #ffffff;
    --border-color: rgba(0, 0, 0, 0.05);
    --heading-color: #384050;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--light-bg);
}

/* Hero section */
.hero-section {
    padding: 7rem 0 6rem;
    background-color: rgba(249, 250, 251, 0.7);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(82, 119, 195, 0.07) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
}

/* Card hover effects */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08) !important;
}

/* Button styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Link styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Section styling */
section {
    padding: 4.5rem 0;
}

section.bg-light {
    background-color: rgba(249, 250, 251, 0.7) !important;
}

/* Card tweaks */
.card {
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.card-body {
    padding: 1.75rem;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.display-4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1.25rem;
}

/* Custom icons */
.bi {
    display: inline-block;
    vertical-align: -0.125em;
    color: var(--primary-color);
}

/* Footer tweaks */
footer {
    border-top: 1px solid var(--border-color);
    background-color: rgba(249, 250, 251, 0.9) !important;
    color: var(--text-color);
    padding: 2rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    h1.display-4 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .card-body {
        padding: 1.25rem;
    }
}

/* Alert/Callout styles */
.alert {
    display: flex;
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    border-left: 4px solid transparent;
}

.alert-icon {
    flex-shrink: 0;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-icon i {
    font-size: 1.5rem;
}

.alert-content {
    flex-grow: 1;
}

.alert-content p:last-child {
    margin-bottom: 0;
}

.alert-info {
    background-color: rgba(82, 119, 195, 0.1);
    border-left-color: var(--primary-color);
}

.alert-info i {
    color: var(--primary-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
}

.alert-warning i {
    color: #ffc107;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
}

.alert-success i {
    color: #28a745;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
}

.alert-danger i {
    color: #dc3545;
}

/* Custom card styling for shortcode */
.custom-card {
    border: none;
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.custom-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.custom-card .bi {
    color: var(--primary-color);
}

/* Highlight styling */
.highlight {
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    background-color: rgba(82, 119, 195, 0.1);
    border-left: 4px solid var(--primary-color);
} 