/*------------------------------------------------------
  Name: unic_badge_det_styles.css
  Purpose: Styles for AI company badge detail pages.
  Last Updated: 2025-02-26 11:01PM
------------------------------------------------------*/

/* General Styles */
body {
    font-family: Calibri, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    /* min-height: 100vh; */
    min-height: 100vh;
}

/* Header (Company Name + Logo) */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;  /* Allow precise positioning */
}


/* Badge Container */
.badge-container {
    position: relative;
    top: -100px; /* Reduce upward shift */
    background: #F0F0F0; /* For troubleshooting */
    max-width: 600px;
    width: 90%;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* Badge Container */
.badge-containerZZ {

    position: relative;
    top: -150px;  /* Adjust value as needed */

    background: red;
    /* background: white; */

    max-width: 600px;
    width: 90%;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* Header */
.company-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.company-name {
    font-size: 28px;
    font-weight: bold;
}

.company-logo img {
    max-width: 100px;
    height: auto;
    margin-left: auto;
    border: 6px solid red;
}

/* Company Logo */
.logo-container {
    position: absolute;
    top: 0;
    right: 0;
    max-width: 100px;
    height: auto;
    padding: 5px;  /* Adds spacing from the top-right edge */
}

.logo-container img {
    width: 100%;  /* Adjust width to fit container */
    height: auto;
}

/* Rank Badge */
.rank-container {
    background-color: #dc3545;
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: 18px;
    padding: 12px;
    border-radius: 8px;
    margin-top: 40px; /* Space below the logo */
    position: relative; /* Ensures it does not get overlapped */
}

/* Rank Badge */
.rank-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #dc3545;
    color: white;
    font-weight: bold;
    font-size: 18px;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
}

/* Rationale Section */
.rationale-container {
    margin-top: 15px;
    font-size: 16px;
    line-height: 1.5;
}

/* Details Table */
.details-container {
    margin-top: 15px;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.details-table th,
.details-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.details-table th {
    text-align: left;
    font-weight: bold;
}

/* Navigation Buttons */
.nav-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.nav-button {
    text-decoration: none;
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button:hover {
    background-color: #0056b3;
}

.nav-button-disabled {
    background-color: #ccc;
    color: #666;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 600px) {
    .badge-container {
        width: 95%;
        top: 0px; /* Prevents shifting content off-screen on mobile */
    }

    .company-name {
        font-size: 24px;
    }

    .company-logo img {
        max-width: 80px;
    }

    .rank-badge {
        font-size: 16px;
        padding: 10px;
    }

    .rationale-container {
        font-size: 15px;
    }

    .nav-button {
        font-size: 14px;
        padding: 10px 16px;
    }
}
