/* Home page specific styles for Discretionary Powers Tracker */

/* Hero section overrides - enhanced with more modern styling */
.hero {
    background: linear-gradient(135deg, #1a2a6c 0%, #43aff2 100%);
    color: white;
    padding: 100px 20px; /* Increased padding for more breathing space */
    position: relative;
    margin-bottom: 3rem; /* Increased spacing after hero */
    overflow: hidden; /* Ensure any decorative elements don't cause overflow */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 42, 108, 0.75); /* Slightly more transparent for a modern look */
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-weight: 700;
    letter-spacing: -0.02em; /* Tighter letter-spacing for modern headlines */
    margin-bottom: 1.5rem;
}

.hero .lead {
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* Process steps - enhanced with more visual distinction */
.process-step {
    position: relative;
    padding: 1.75rem 1.25rem;
    border-radius: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.process-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background-color: rgba(255,255,255,0.6);
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 3rem;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background-color: #dee2e6;
    display: none;
}

@media (min-width: 768px) {
    .process-step:not(:last-child)::after {
        display: block;
    }
}

/* Icon styling - more consistent and modern */
.process-icon, .role-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.process-step:hover .process-icon,
.card:hover .role-icon {
    transform: scale(1.1);
}

.feature-icon {
    color: #1a2a6c;
    opacity: 0.9;
}

.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px; /* Slightly rounded corners for modern look */
}

/* Animation - smoother and more subtle */
.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card hover effects - smoother transitions */
.card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
}

.card-body {
    padding: 1.75rem; /* More consistent padding */
}

/* Section styling - more consistent spacing */
section {
    padding: 5rem 0; /* Standardized section padding */
}

section:nth-child(even) {
    background-color: #f8f9fa;
}

/* Search preview styling */
.search-preview {
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.search-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Floating search link */
.floating-search-link {
    position: absolute;
    bottom: 30px;
    right: 40px;
    z-index: 10;
}

.floating-search-link .btn {
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Accordion custom styling - more minimalist */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(26, 42, 108, 0.15);
    z-index: 1;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(26, 42, 108, 0.08);
    color: #1a2a6c;
}

.accordion-body {
    padding: 1.25rem 1.5rem;
    line-height: 1.6;
}

/* Education section */
#education {
    background-color: #f8f9fa;
    border-radius: 0.75rem;
    padding: 3rem 0;
}

/* Resource item effects */
.resource-item {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.resource-item:hover {
    transform: translateY(-3px);
    background-color: #f1f3f9 !important;
}

.resource-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.01em;
}

h2 {
    font-weight: 700;
    margin-bottom: 2.5rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1a2a6c, #43aff2);
    margin: 1rem auto 0;
    border-radius: 2px;
}

h2.text-start:after {
    margin: 1rem 0 0;
}

/* System stats enhancements */
#system-stats .card {
    padding: 0.5rem;
}

#system-stats .display-4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 2.75rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    section {
        padding: 4rem 0;
    }
    
    .hero {
        padding: 80px 20px;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 3rem 0;
    }
    
    .display-4 {
        font-size: 2.25rem;
    }
    
    .process-icon, .role-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 1.25rem;
    }
    
    h2 {
        margin-bottom: 2rem;
        font-size: 1.75rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .hero {
        padding: 60px 20px;
    }
}

@media (max-width: 575.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .process-icon, .role-icon {
        width: 60px;
        height: 60px;
    }
    
    .hero {
        padding: 50px 15px;
    }
    
    .floating-search-link {
        bottom: 20px;
        right: 20px;
    }
}