/* styles.css – Unified Design */

@font-face {
    font-family: 'acumin-pro';
    src: url('./fonts/AcuminPro-Regular.woff2') format('woff2'),
         url('./fonts/AcuminPro-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'acumin-pro';
    src: url('./fonts/AcuminPro-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'acumin-pro', sans-serif;
    background-color: #f9fafb;
    color: #183342;
    font-size: 16px;
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: #183342;
}

/* ---------- loader ---------- */

.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-family: 'acumin-pro', sans-serif;
    color: #183342;
    background-color: #f9fafb;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #e5e7eb;
    border-top-color: #266a3a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* ---------- INDEX.HTML: Option Cards ---------- */

.options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin-top: 2rem;
}

.card-section {
    margin-top: 1rem;
}

.option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    width: 100%;
    text-align: left;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.option-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.option-card:hover::after {
    color: #266a3a;
}

.option-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #e6f4ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #266a3a;
    flex-shrink: 0;
}

.option-card h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #183342;
    font-weight: 600;
}

.option-card h3 {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #266a3a;
}

.option-card p {
    font-size: 0.95rem;
    color: #4b5563;
    margin: 0.25rem 0 0;
}

.content-section {
    display: flex;
}

.idea-card-title {
    width: 100%;
}

/* ---------- CONTENT-GENERATOR.HTML: Form Styling ---------- */

.form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid #e5e7eb;
}

.form-group {
    width: 100%;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #183342;
}

select {
    font-family: 'acumin-pro', sans-serif;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background-color: #f9fafb;
    font-size: 1rem;
    color: #183342;
    transition: border-color 0.2s ease;
}

select:focus {
    outline: none;
    border-color: #266a3a;
    background-color: #ffffff;
}

input {
    font-family: 'acumin-pro', sans-serif;
    width: 100%;
    padding: 0.75rem 1rem;
    margin: .5rem 0rem;
    font-size: 1rem;
    color: #183342;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
    color: #9ca3af;
}

input:focus {
    outline: none;
    border-color: #266a3a;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(38, 106, 58, 0.1);
}

/* Button Style (used in form) */

button,
.modern-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px; /* vaste hoogte */
    min-width: 160px; /* optioneel: voorkomt breedteverspringing */
    padding: 0.75rem 2rem;
    background-color: #266a3a;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    line-height: 1;
    white-space: nowrap;
}

button:hover,
.modern-button:hover {
    background-color: #1e5430;
}

/* Back Button */

.back-button {
    text-decoration: none;
    color: #266a3a;
    font-weight: 500;
    transition: color 0.2s;
}

.back-button:hover {
    color: #183342;
}

/* ---------- SEO AUDIT CARDS ---------- */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.audit-container.container-init {
  grid-template-columns: repeat(1, 1fr);
}

.audit-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .audit-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .audit-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.audit-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #ffffff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.3s ease;
}

.audit-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(to right, rgba(38, 106, 58, 0.05), rgba(38, 106, 58, 0.1));
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #183342;
    margin: 0 0 0.5rem 0;
}

.card-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

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

.card-summary {
    font-size: 0.875rem;
    text-align: left;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: #183342;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
    min-height: auto;
    min-width: auto;
}

.read-more-btn:hover {
    background-color: #f9fafb;
    border-color: #266a3a;
    color: #266a3a;
}

.read-more-btn svg {
    transition: transform 0.2s ease;
}

.read-more-btn:hover svg {
    transform: translateX(4px);
}

/* ---------- MODALS ---------- */

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 56rem;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1001;
}

.modal.active {
    display: block;
}

.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-backdrop.active {
    display: block;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #183342;
    text-align: left;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-height: auto;
    min-width: auto;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: #183342;
}

.modal-summary {
    padding: 1.5rem;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.modal-table {
    padding: 0 1.5rem 1.5rem;
}

.modal-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    font-size: 0.95rem;
}

.modal-table table th,
.modal-table table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    word-wrap: break-word;
    border-bottom: 1px solid #e5e7eb;
}

.modal-table table thead tr:first-child th {
    background-color: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.modal-table table tbody tr:last-child td {
    border-bottom: none;
}

.modal-table table th {
    color: #183342;
    font-weight: 600;
    text-align: left;
}

.modal-table table td {
    color: #4b5563;
    text-align: left;
}

.modal-table table td:first-child {
    font-weight: 600;
    color: #183342;
}

/* ---------- Loading Spinner inside Button ---------- */

.button-loading, 
.button-loading:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px; /* zorg voor vaste hoogte */
    background-color:grey;
    cursor: wait;
}

.button-loading .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    margin-top: 1px; /* optioneel: fine-tune verticale align */
    margin-bottom: 0px;
}

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

/* ---------- ARTICLE STYLE ---------- */

article {
    background-color: #ffffff;
    padding: 2.5rem 2rem;
    margin: 3rem auto;
    max-width: 800px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    color: #183342;
    font-family: 'acumin-pro', sans-serif;
}

article header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #183342;
    text-align: left;
}

article header p {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

article section {
    margin-bottom: 2rem;
}

article h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #266a3a;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

article p {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1rem;
}

article a {
    color: #266a3a;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

article a:hover {
    color: #1e5430;
}

article footer p {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 1rem;
    color: #183342;
}

textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #183342;
    font-family: 'acumin-pro', sans-serif;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
    min-height: 120px;
}

textarea::placeholder {
    color: #9ca3af;
    font-family: 'acumin-pro', sans-serif;
}

textarea:focus {
    outline: none;
    border-color: #266a3a;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(38, 106, 58, 0.1);
}