/*project-card.css is responable for all the styles related to the cards shown the projects page*/

/*sets the base style for the card size and background styles */
.project-card {
    width: 300px;
    height: 460px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-primary);
    box-shadow: 6px 4px 4px rgba(0, 0, 0, .25);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; /* creates a smooth transition for the hover effect */
}

.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 */
}

/*makes the link the entire card plus sets the card direction*/
.project-card-link {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 12px;
}

/*creates the styles for section to hold the banner picture of the project*/
.project-banner-container {
    position: relative;
    width: 100%;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius-secondary);
}

/*sets the styles for the picture to cover the entire container*/
.project-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*this is the icon styling background container*/
.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 */
}

/*this is the styling for the icon itself */
.project-type-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.project-content {
    flex: 1; /*takes as much space as it can*/
    display: flex;
    flex-direction: column;
    padding: 14px 4px 2px;
}

.project-title {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.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 */
.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 */
}

.project-skill {
    min-height: 28px; 
    display: inline-flex;
    align-items: center; /* vertically centers the skill pill text */
    padding: 4px 10px;
    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: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap; /* prevents the skill pill text from wrapping to the next line */
}

/*styling for the footer section to seperate the dev status and the last updated time stamp*/
.project-card-footer {
    margin-top: auto;
    flex-direction: column;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.project-status {
    display: flex;
    align-items: center;
    gap: 7px;
}

.project-status-circle {
    width: 11px;
    height: 11px;
    display: block;
    flex-shrink: 0;
    border-radius: 50%;
}

.project-status-text, .project-card-date {
    font-size: 14px;
    font-weight: 500;
}

.project-status-text {
    color: var(--text-primary);
}

.project-card-date {
    color: var(--text-muted);
    white-space: nowrap;
}

.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);
}