/* featured-project-card.css file contains all the styling for the featured project card classes and structure */

/*the featured project card container styles*/
.featured-project-card {
    width: min(425px, 100%); 
    height: 460px;
    background-color: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-primary);
    box-shadow: 6px 4px 4px rgba(0, 0, 0, 0.25);
    overflow: hidden; /* hides any content that overflows the card container */
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; /* creates a smooth transition for the hover effect */
}

.featured-project-card:hover {
    transform: translate(2px, 2px); /* moves the card down and to the right by 2px on hover */
    box-shadow: none; /* removes the box shadow on hover */
}

/* the link that encapsulates the card content to make it clickable to nav to the project specific page */
.featured-project-card-link {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 12px;
}

/*banner styles*/
.featured-project-banner-container {
    width: 100%;
    height: 220px;
    position: relative; /* allows for absolute positioning of the banner image */
    flex-shrink: 0; /* prevents the banner from shrinking when the card is resized */
    overflow: hidden; /* hides any overflowing content */
}

.featured-project-banner {
    width: 100%;
    height: 220px;
    object-fit: cover; /* ensures the image covers the entire banner area without distortion */
    border-radius: var(--radius-primary); /* rounds the top corners of the banner */
}

.featured-project-type-icon {
    width:36px;
    height:36px;
    position: absolute; /* positions the icon relative to the banner container */
    left: 6px; /* positions the icon 12px from the left edge of the banner */
    bottom: 6px; /* positions the icon 12px from the bottom edge of the banner */
    z-index: 2; /* ensures the icon appears above the banner image */
    display: flex;
    align-items: center; /* vertically centers the icon within its container */
    justify-content: center; /* horizontally centers the icon within its container */
    background-color: var(--text-muted); /* sets the background color of the icon container */
    border: 1px solid var(--border); /* adds a border to the icon container */
    border-radius: var(--radius-primary); /* rounds the corners of the icon container */
}

.featured-project-type-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain; /* ensures the icon image fits within the container without distortion */
    flex-shrink: 0; /* prevents the icon image from shrinking when the card is resized */
}

/* the stles for the card content below the banner */
.featured-project-content {
    flex: 1; /* allows the content to grow and fill the remaining space in the card */
    display: flex;
    flex-direction: column; /* stacks the content vertically */
    padding: 14px 4px 2px;
}

.featured-project-title {
    padding-left: 4px;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.featured-project-description {
    padding-left: 4px;
    margin-top: 8px;
    color: var(--text-secondary); 
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box; /* enables the use of -webkit-line-clamp for truncating text */
    -webkit-box-orient: vertical; /* sets the box orientation to vertical for truncating text */
    -webkit-line-clamp: 3; /* limits the description to 3 lines */
    overflow: hidden; /* hides any overflowing text */
    line-clamp: 3; /* limits the description to 3 lines needed to used the webkit prefix, this and webkit just depends on the browser */
}

/*skill pill styling */
.featured-project-skills {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap; /* allows the skill pills to wrap to the next line if they exceed the width of the container */
    gap: 8px; /* adds a 8px gap between the skill pills */
    max-height: 64px; /* limits the height of the skill pills container to 64px */
    overflow: hidden; /* hides any overflowing skill pills */
}

.featured-project-skill {
    min-height: 12px; 
    display: inline-flex;
    align-items: center; /* vertically centers the skill pill text */
    padding: 4px 12px;
    color: var(--accent-teal);
    background-color: var(--surface);
    border: 1px solid var(--accent-teal);
    border-radius: 50px; /* makes the skill pills fully rounded */
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap; /* prevents the skill pill text from wrapping to the next line */
}

/*project status styles*/
.featured-project-status {
    padding-left: 4px;
    margin-top: auto; /* pushes the status to the bottom of the card content */
    display: flex;
    align-items: center; /* vertically centers the status circle and text */
    gap: 8px; /* adds a 8px gap between the status circle and text */
}

.featured-project-status-circle {
    display: inline-block;
    width: 15px;
    height: 15px;
    flex-shrink: 0; /* prevents the status circle from shrinking when the card is resized */
    border-radius: 50%; /* makes the status circle fully rounded */
}

.featured-project-status-text {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.status-completed {
    background-color: var(--success);
}

.status-in-development {
    background-color: var(--warning);
}

.status-active {
    background-color: var(--accent-teal);
}

.status-paused {
    background-color: var(--text-muted);
}

/*temp media work for mobile layout*/
@media (max-width: 1100px){
    .featured-project-card{
        width: 100%;
        height: 380px;
        min-width: 0;
    }
    .featured-project-card-link{
        height: 100%;
    }
    .featured-project-banner-container, .featured-project-banner{
        height: 150px;
    }
    .featured-project-title{
        font-size: 18px;
    }
    .featured-project-description{
        font-size: 13px;
    }
    .featured-project-skills{
        max-height: none;
        gap: 5px;
        margin-top: 8px;
    }
    .featured-project-skill{
        font-size: 11px;
        padding: 4px 8px;
    }
    .featured-project-status-text{
        font-size: 12px;
    }
    .featured-project-type-icon{
        width: 30px;
        height: 30px;
    }
    .featured-project-type-icon img {
        width: 18px;
        height: 18px;
    }
    .featured-project-content{
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    .featured-project-status {
        margin-top: auto;
    }
}