/* For AI Chat interface */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

/* Reset some defaults */
html, body {
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
}

a, .btn-link {
    color: #006bb7;
}

/* Page Wrapper */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Allow growth beyond viewport if needed */
    background-color: #1a1a2e;
    align-items: center;
}

/* Shared Section Wrapper */
.section-wrapper {
    color: #ffffff;
    text-align: center;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto; /* Scroll when content overflows */
}

/* Rest unchanged */
.section-content {
    max-width: 900px;
    width: 100%;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #00c4b4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.category-tag {
    display: inline-block;
    background-color: #00c4b4;
    color: #1a1a2e;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.post-meta {
    font-size: 0.9rem;
    color: #b3b3b3;
    margin-bottom: 0.5rem;
}

.btn-primary {
    color: #fff;
    background-color: #00c4b4;
    border-color: #00c4b4;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #00a896;
    border-color: #00a896;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
    text-align: center;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background-color: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

h1:focus {
    outline: none;
}

@media (max-width: 768px) {
    .section-wrapper {
        padding: 10px;
    }

    .profile-pic {
        width: 120px;
        height: 120px;
    }

    .btn-primary {
        min-width: 180px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }

    .category-tag {
        font-size: 0.7rem;
    }

    .post-meta {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .profile-pic {
        width: 100px;
        height: 100px;
    }

    .btn-primary {
        min-width: 160px;
    }

    .cta-buttons {
        gap: 1rem;
    }
}