/* Base Styles */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

a, .btn-link {
    color: #006bb7;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover, .btn-link:hover {
    color: #00508c;
    text-decoration: underline;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #155d9c;
    border-color: #134f85;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Timeline Specific Styles */
.timeline-wrapper {
    position: relative;
    padding: 2rem 0;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #3498db, #9b59b6, #e74c3c);
    border-radius: 10px;
}

.timeline-section {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
    display: block;
}

.timeline-header {
    position: relative;
    padding: 1.5rem;
    margin-bottom: 0;
    border-radius: 0.5rem 0.5rem 0 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    padding: 2rem;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.timeline-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.timeline-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* Responsive Timeline */
@media (max-width: 991.98px) {
    .timeline-wrapper::before {
        left: 30px;
    }
    
    .timeline-section {
        padding-left: 60px;
    }
    
    .timeline-content {
        margin-left: 0;
    }
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.125);
    overflow: hidden;
}

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

/* Timeline section animations */
.timeline-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
    display: block;
}

.timeline-section.visible {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

/* Staggered animation delays */
.timeline-section.visible:nth-child(1) { transition-delay: 0.1s; }
.timeline-section.visible:nth-child(2) { transition-delay: 0.2s; }
.timeline-section.visible:nth-child(3) { transition-delay: 0.3s; }
.timeline-section.visible:nth-child(4) { transition-delay: 0.4s; }
.timeline-section.visible:nth-child(5) { transition-delay: 0.5s; }

/* Checkmark animations */
.timeline-content .fa-check {
    animation: checkmarkPop 0.3s ease-out;
    animation-delay: calc(var(--i) * 0.1s);
    animation-fill-mode: both;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animation for checkmarks */
@keyframes checkmark {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.timeline-content li i.fa-check {
    animation: checkmark 0.5s ease-out forwards;
    animation-delay: calc(0.1s * var(--i, 0));
}

/* Blazor Error Boundary */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTE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TI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Custom styles for NCAA Scholarship Guide */
.hero-section {
    background: linear-gradient(135deg, #1b6ec2 0%, #0d47a1 100%);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #17a2b8 0%, #17a2b8 25%, #ffc107 25%, #ffc107 50%, #28a745 50%, #28a745 75%, #dc3545 75%, #dc3545 100%);
    border-radius: 2px;
    z-index: 1;
}

.timeline-item {
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 2px solid white;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-left: 1rem;
}

.card {
    transition: transform 0.2s ease-in-out;
}

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

/* Visual Timeline Styles */
.timeline-visual {
    position: relative;
    padding: 2rem 0;
}

.timeline-visual::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #17a2b8, #ffc107, #28a745, #dc3545);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-visual .timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-visual .timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-visual .timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-visual .timeline-marker {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    margin: 0 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 4px solid white;
}

.timeline-visual .timeline-content-visual {
    flex: 1;
    max-width: 400px;
    animation: fadeInUp 0.6s ease-out;
}

.timeline-visual .timeline-item:nth-child(even) .timeline-content-visual {
    text-align: right;
}

@media (max-width: 768px) {
    .timeline-visual::before {
        left: 30px;
    }
    
    .timeline-visual .timeline-item {
        flex-direction: row !important;
        margin-left: 0;
    }
    
    .timeline-visual .timeline-marker {
        margin: 0 1rem 0 0;
        width: 50px;
        height: 50px;
    }
    
    .timeline-visual .timeline-content-visual {
        text-align: left !important;
        max-width: none;
    }
}

.btn {
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Colleges Finder Styles */
.college-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

.college-card .card-header {
    border-bottom: 2px solid #e9ecef;
}

.college-card .badge {
    font-size: 0.75em;
}

.college-card .card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}
