/* CSS from the original style.css, customized for Vault */
:root {
    --primary-teal: #14b8a6; /* teal-500 */
    --primary-blue: #0ea5e9; /* sky-500 */
    --bg-light: #f9fafb;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    background-color: var(--bg-light);
    color: var(--text-primary);
    padding-top: 80px; /* Space for fixed header */
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

/* Optimized Header Styles */
.header-sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95); /* Slightly more opaque */
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Stronger, cleaner shadow */
    transition: var(--transition);
}

.logo-text {
    /* Applying the gradient text effect to the H1 */
    background-image: linear-gradient(90deg, #0d9488, #0ea5e9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.5rem; /* text-2xl */
    line-height: 1.1;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -8px; /* Adjusted position */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-teal);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active::after {
    width: 100%; /* Highlight active page if implemented */
}

.hero-bg {
    background: linear-gradient(135deg, #f0fdfa 0%, #f0f9ff 100%);
    position: relative;
    overflow: hidden;
}

.card, .resource-card {
    background: white;
    border-radius: 1rem;
    border: 2px solid #e5e7eb;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card:hover, .resource-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-teal);
}

/* --- NEW CARD STYLES --- */
.resource-card .card-header {
    padding: 1rem 1.5rem 0;
}

.new-category-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #e6fffa; /* Tailwind teal-100 */
    color: var(--primary-teal);
}

.resource-card .card-body {
    padding: 1rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.resource-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.author-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.author-icon {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

.description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
    /* Added min-height to prevent card height collapse if description is empty */
    min-height: 20px;
}

.contributor-section {
    border-top: 1px solid #f3f4f6;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.contributor-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #9ca3af; /* gray-400 */
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contributor-details {
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151; /* gray-700 */
    margin-bottom: 0.5rem;
}

.contributor-socials {
    display: flex;
    gap: 0.75rem;
}

.contributor-socials a {
    color: #9ca3af; /* gray-400 */
    transition: color 0.2s;
}
.contributor-socials a:hover {
    color: var(--primary-teal);
}

.resource-card .card-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
}

/* Updated PDF Button Style for Modal */
.pdf-button-action {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: var(--primary-teal);
    color: white;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(20, 184, 166, 0.4);
    cursor: pointer; /* Ensure cursor is pointer for button */
}

.pdf-button-action:hover {
    background-color: #0d9488; /* Darker teal */
    box-shadow: 0 4px 8px rgba(20, 184, 166, 0.6);
}

.pdf-button-action[disabled] {
    background-color: #e5e7eb; /* gray-200 */
    color: #9ca3af; /* gray-400 */
    cursor: not-allowed;
    box-shadow: none;
}

.pdf-icon {
    margin-right: 0.5rem;
    color: white;
}
.pdf-button-action[disabled] .pdf-icon {
    color: #9ca3af;
}
/* --- END NEW CARD STYLES --- */


.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
}

/* Mobile Menu Styles */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

.menu-overlay {
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

body.mobile-menu-open {
    overflow: hidden;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner, .spinner {
    border: 6px solid rgba(20, 184, 166, 0.2);
    border-left-color: var(--primary-teal);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    animation: spin 1.2s linear infinite;
}

.loader-text {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Modal Styles */
.modal-open {
    animation: fadeIn 0.3s ease forwards;
}

.form-modal-content {
    background: white;
    border-radius: 1rem;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.form-header {
    margin-bottom: 1.5rem;
    text-align: center;
}
.form-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
}
.form-subtitle {
    color: #6b7280;
    margin-top: 0.5rem;
}

.form-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed #e5e7eb;
}
.form-step:last-child {
    border-bottom: none;
}

.step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background-color: var(--primary-teal);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1rem;
    box-shadow: 0 4px 6px -1px rgba(20, 184, 166, 0.3);
}

.step-title {
    font-weight: 600;
    color: #1f2937;
}

.step-description {
    font-size: 0.875rem;
    color: #6b7280;
}

.form-preview {
    text-align: center;
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}
.form-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-teal), var(--primary-blue));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(20, 184, 166, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 6px 15px rgba(20, 184, 166, 0.5);
    transform: translateY(-2px);
}
.btn-secondary {
    background: #e5e7eb;
    color: #374151;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
}
.btn-secondary:hover {
    background: #d1d5db;
}

/* Notification styles */
.notification {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background-color: #10b981; /* Green for success */
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
}
.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Pagination Button Styling */
.pagination-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    background-color: #f3f4f6; /* gray-100 */
    color: #374151; /* gray-700 */
    border: 1px solid #e5e7eb;
    margin: 0 0.25rem;
}
.pagination-btn:not(:disabled):hover {
    background-color: #d1d5db; /* gray-300 */
}
.pagination-btn.active {
    background-color: var(--primary-teal);
    color: white;
    border-color: var(--primary-teal);
}
.pagination-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Overriding the standard anchor styling for the footer to match the blog's design */
.footer-link-group a {
    position: relative;
    color: #9ca3af; /* gray-400 */
}
.footer-link-group a:hover {
    color: var(--primary-teal);
}