/* Animations and Hover Enhancements for Premium SaaS UI */

/* Readability Overrides */
.reading-text {
    line-height: 1.7 !important;
    font-size: 17px !important;
    color: #334155 !important;
}

.reading-text p {
    margin-bottom: 1.2rem !important;
}

.result-card {
    padding: 24px !important; /* Adjusted from 32px for cleaner look */
    margin-bottom: 24px !important;
}

@media (max-width: 768px) {
    .reading-text { font-size: 15px !important; }
    .result-card {
        padding: 16px !important;
    }
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.25s cubic-bezier(0.1, 0.7, 0.1, 1), box-shadow 0.25s cubic-bezier(0.1, 0.7, 0.1, 1) !important;
}
.hover-lift:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 32px rgba(47, 85, 151, 0.08) !important;
}

/* Base Drop Shadows */
.shadow-soft {
    box-shadow: 0 4px 16px rgba(0,0,0,0.03) !important;
    border: 1px solid rgba(0,0,0,0.04) !important;
}
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
.shadow-button {
    box-shadow: 0 4px 12px rgba(51, 112, 255, 0.25);
    transition: all 0.2s ease;
}
.shadow-button:hover {
    box-shadow: 0 6px 16px rgba(51, 112, 255, 0.35);
    transform: translateY(-1px);
}

.shadow-icon {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* Badges */
.badge-gray {
    background: #F1F5F9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Borders */
.border-t {
    border-top: 1px solid #E2E8F0;
}

/* Share Grid Buttons */
.btn-share {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-share:hover {
    background: #E0F2FE;
    color: var(--primary);
    border-color: #BAE6FD;
    transform: scale(1.05);
}

/* Hover Utils */
.hover-scale {
    transition: transform 0.2s ease;
}
.hover-scale:hover {
    transform: scale(1.02);
}

.tertiary-link:hover {
    text-decoration: underline;
    opacity: 0.9;
}
.hover-gray:hover {
    background-color: #F8FAFC;
}

/* Border highlighting */
.border-highlight {
    outline-offset: -1px;
}
.border-left-blue { border-left: 4px solid var(--primary) !important; }
.border-left-yellow { border-left: 4px solid var(--warning) !important; }
.border-left-red { border-left: 4px solid #EF4444 !important; }
.text-primary { color: var(--primary) !important; }

/* Interactive lists */
.hover-bg.transition { transition: background 0.15s ease; }
.hover-bg:hover {
    background: #F8FAFC;
}
.p-2 { padding: 8px; }

/* Details/Summary animation for Student HTML */
.step-details {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.step-details[open] {
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border-color: #BAE6FD;
}
.step-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none; /* Hide default arrow */
    background: #F8FAFC;
}
.step-summary::-webkit-details-marker {
    display: none;
}
.step-details[open] .step-summary {
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
}
.step-details[open] .expand-icon {
    transform: rotate(180deg);
}
.expand-icon {
    transition: transform 0.2s ease;
    color: var(--text-muted);
}
.step-content-box {
    padding: 24px 32px;
}

/* Progress indicator row */
.progress-steps {
    display: flex;
    align-items: center;
    width: 100%;
}
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}
.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F1F5F9;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid #E2E8F0;
    transition: all 0.3s ease;
}
.step-indicator.active .step-circle {
    background: #E0F2FE;
    color: var(--primary);
    border-color: var(--primary);
}
.step-indicator.final .step-circle {
    background: #FFFBEB;
    border-color: #F59E0B;
}
.step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}
.step-indicator.active .step-label {
    color: var(--text-dark);
}
.step-line {
    flex: 1;
    height: 2px;
    background: #E2E8F0;
    margin: -20px 8px 0; /* Align with circles */
    transition: all 0.3s ease;
}
.step-line.active {
    background: var(--primary);
}
