/* Name: unic_styles.css */
/* General Page Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f9f9f9;
}

/* Sector Card Styling */
.sector-card {
    background: #f1f1f1;
    border: 2px solid #ccc;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    padding: 20px;
}

/* Sector Title */
.sector-card h2 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* Individual Company Card */
.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto; /* Allow height to adjust dynamically */
    width: 300px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
    flex: 1 1 300px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

/* Card Content using Flexbox */
.card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px; /* Remove extra spacing */
}

/* Paragraph Spacing Fix */
.card p {
    margin: 2px 0; /* Reduce vertical spacing between lines */
    line-height: 1.2; /* Adjust line spacing for better readability */
}

/* Rating Badge */
.rating-badge {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    margin: 4px 0; /* Further minimize spacing */
}

/* Updated Rating Colors */
.orange { background-color: #fd7e14; } /* Potential Unicorn */
.blue { background-color: #007bff; } /* Unicorn Adjacent */
.green { background-color: #28a745; } /* Unicorn */
.purple { background-color: #6f42c1; } /* AI Titan */
.gray { background-color: #d6d6d6; } /* Not Rated */


/* Button Group */
.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2px; /* Reduce spacing between buttons */
    justify-content: flex-start;
    margin-top: 2px; /* Reduce spacing above buttons */
}

.button-3d {
    width: 30px;
    height: 30px;
    background: linear-gradient(to bottom, #ececec, #d4d4d4);
    border-radius: 10px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3), inset -2px -2px 4px rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: black;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.button-3d:hover::after {
    content: attr(href); /* Show URL on hover */
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 10;
}

.button-3d:active {
    box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.3);
    transform: translateY(2px);
}

.company-logo img {
    width: 150px;  /* Adjust width as needed */
    height: auto;  /* Keeps aspect ratio */
    display: block;
    margin: 10px auto; /* Centers the image */
}

/* Responsive Fix for Smaller Screens */
@media (max-width: 768px) {
    .card {
        width: 100%;
        height: auto;
    }
}
