/* CODECHECK Register Styles */

/* ====================
   General Utilities
   ==================== */

/* Base container for consistent max-width and centering */
.container,
.navbar-container,
.redirect-container,
.redirect-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Additional container variations */
.redirect-container {
    margin: 2rem auto;
}

/* Build info styling */
.build-info {
    font-size: 0.85em;
    color: #999;
    margin-top: 1em;
}

/* ====================
   CODECHECK Branding
   ==================== */

/* Primary brand color - use throughout for consistency */
.codecheck-green,
.navbar-menu .nav-link,
.redirect-title,
.redirect-link,
.redirect-footer-link {
    color: #008033;
}

.codecheck-green-bg {
    background-color: #008033;
}

/* Border color for branding elements */
.codecheck-navbar,
.footer-separator {
    border-color: #008033;
}

/* ====================
   Navigation Header
   ==================== */

.codecheck-navbar {
    background-color: #ffffff;
    border-bottom: 2px solid;
    padding: 0.75rem 0;
    margin-bottom: 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 0;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 0;
    margin: 0;
}

.navbar-logo {
    height: 50px;
    width: auto;
}

.navbar-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.navbar-menu .nav-link {
    text-decoration: none;
    font-weight: 500;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s, color 0.2s;
}

.navbar-menu .nav-link:hover {
    background-color: #f0f0f0;
    color: #005522;
}

.navbar-menu .nav-link.active {
    font-weight: 700;
}

/* Responsive navigation */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-menu {
        width: 100%;
        justify-content: center;
    }

    .navbar-logo {
        height: 40px;
    }
}

/* ====================
   Breadcrumbs
   ==================== */

/* Container for breadcrumb navigation with consistent max-width */
.breadcrumb-container {
    max-width: 1200px;
    margin: 1rem auto;
}

/* Left-align breadcrumbs with logo and other page elements */
nav[aria-label="breadcrumb"] {
    padding-left: 0;
    margin-left: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
    padding-left: 0;
    margin-left: 0;
    border-radius: 0;
    font-size: 1.08rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    padding: 0 0.5rem;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* ====================
   Footer
   ==================== */

.footer-links {
    margin-bottom: 2em;
}

.footer-separator {
    border: 2px solid;
    margin-top: 2em;
}

.footer-content {
    color: #6c757d !important;
}

.footer-description {
    font-style: italic;
}

/* ====================
   Codechecker Profiles
   ==================== */

.codechecker-profile-links {
    margin-bottom: 1.5em;
}

.orcid-icon-large {
    font-size: 1.2em;
    color: #A6CE39;
}

/* ====================
   Redirect Pages
   ==================== */

.redirect-message {
    text-align: center;
    padding: 3rem 1rem;
}

.redirect-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.redirect-text {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.redirect-text-small {
    font-size: 1rem;
}

.redirect-link {
    font-weight: 500;
}

.redirect-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.redirect-footer-container {
    text-align: center;
}

.redirect-footer-text {
    margin-bottom: 0.5rem;
}

.redirect-footer-link {
    margin: 0 1rem;
}

/* ====================
   Certificate Pages
   ==================== */

/* Certificate page container - wider than standard container */
.cert-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    padding-left: 0;
}

/* Base typography for certificate pages */
body {
    font-family: "PT Sans", Helvetica, Arial, sans-serif;
}

h1 {
    margin-top: 2rem;
}

/* Card styling for certificate pages */
.cert-card-title {
    color: darkgreen;
    margin-top: 0;
}

/* Responsive card heights */
@media (max-width: 768px) {
    .card {
        min-height: 270px;
    }
}

/* Certificate image display */
.img-background {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 100%;
}

.wrapper {
    height: 80vh;
    padding: 0;
}

.row {
    margin: 0;
}

/* Certificate image slider */
#image-slider {
    cursor: pointer;
}

/* Text content containers */
.text-container {
    margin-top: 0.5rem;
}

.text-box {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* Citation generator */
.citation-preview-wrapper {
    position: relative;
}

.citation-preview {
    background-color: #f8f9fa;
    font-family: monospace;
    font-size: 0.9em;
    min-height: 80px;
    white-space: pre-wrap;
    word-wrap: break-word;
    padding-right: 3rem; /* Make room for the copy button */
}

.citation-copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
    background-color: #fff;
    border: 1px solid #dee2e6;
    padding: 0.4rem 0.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.citation-copy-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.citation-copy-btn i {
    margin: 0;
    line-height: 1;
}

.citation-copy-feedback {
    position: absolute;
    top: 0.5rem;
    right: 3.5rem;
    font-size: 0.9em;
    font-weight: 500;
}

/* Certificate page footer link */
.cert-footer-link {
    margin-top: 2rem;
    margin-left: 0;
    padding-left: 0;
    font-size: 0.9em;
}
