/* General Body Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: #fff;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e0e6ed;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    color: #0a2540;
}

/* Main Content Styles */
main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#introduction {
    text-align: center;
    margin-bottom: 3rem;
}

#introduction p {
    font-size: 1.1rem;
    color: #525f7f;
    max-width: 600px;
    margin: 0 auto;
}

/* Search and Filter Controls */
#controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-container {
    flex-basis: 60%;
}

.filter-container {
    flex-basis: 35%;
}

#search-input, #category-filter {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #e0e6ed;
    background-color: #fff;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

#search-input:focus, #category-filter:focus {
    outline: none;
    border-color: #6772e5;
    box-shadow: 0 0 0 2px rgba(103, 114, 229, 0.2);
}

/* Frameworks Grid Styles */
#frameworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Framework Card Styles */
.framework-card {
    background-color: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.framework-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.07);
}

.framework-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #0a2540;
}

.framework-card p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #525f7f;
}

.framework-card .category {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6772e5;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #8898aa;
}

#no-results-message {
    text-align: center;
    margin-top: 2rem;
    color: #525f7f;
    font-size: 1.1rem;
}

/* Framework Detail Page Styles */
#framework-detail-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e0e6ed;
}

#framework-detail-content h1 {
    margin-top: 0;
    font-size: 2.5rem;
}

#framework-detail-content .category {
    font-size: 1rem;
    font-weight: 500;
    color: #6772e5;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.framework-section {
    margin-bottom: 2rem;
}

.framework-section h2 {
    font-size: 1.75rem;
    color: #0a2540;
    border-bottom: 2px solid #e0e6ed;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.framework-section ul {
    padding-left: 20px;
}

.framework-section li {
    margin-bottom: 0.5rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #6772e5;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.pre-wrap-text {
    white-space: pre-wrap;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    main {
        padding: 1rem;
    }

    #framework-detail-content h1 {
        font-size: 2rem;
    }

    .framework-section h2 {
        font-size: 1.5rem;
    }
}
