:root {
    --main-border-radius: 30px;
    --inner-border-radius: 20px;
    --small-border-radius: 15px;
    --padding-outer: 30px;
}

/* Categories switcher */

.highlight-switcher {
    justify-self: center;
    align-self: center;
    width: auto;

    display: flex;
    flex-direction: row;
    gap: 10px;
    margin: 20px;
}

.highlight-block {
    display: flex;
    justify-content: center;
    margin: 4px;
    padding: 8px 0;
    border-radius: 18px;
    width: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.highlight-block.active {
    font-weight: bold;
    color: white;
}

.default-container .label {
    margin: 50px 0;
}


@media (max-width: 600px){
    .highlight-block{
        width: auto;
        margin: 2px;
        flex: 1;
        padding: 8px 8px;
    }
    .highlight-switcher{
        width: 80%;
        max-width: 300px;
        gap: 10px;
        margin: 20px auto;
    }

    p.label {
        text-align: center;
    }
}


/* Project Container */

.project-container {
    padding: var(--padding-outer);
    border-radius: var(--main-border-radius);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: min(90%, 1200px);
    margin: 0 auto;
    background: rgba(var(--color-light-grey), 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease-in-out,
                transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    will-change: transform, filter, opacity;
    transform-origin: center;
}

/* Project Header */
.project-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.project-title {
    font-size: 30px;
    font-weight: 700;
    margin: 0;
}

.project-date {
    background: rgba(var(--color-light), 0.5);
    padding: 5px 15px;
    border-radius: var(--small-border-radius);
    font-weight: 600;
    font-size: 14px;
}

.project-subtitle {
    font-size: 18px;
    margin: 0;
    color: rgba(var(--color-dark), 0.7);
}

.status-container p {
    display: flex;
    white-space: nowrap;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.status-container span {
    display: inline-block;
}
/* Project Upper Container */

.project-upper-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;

}

.project-upper-column {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px; /* Keep the minimum height */
    align-items: stretch;
}

/* Tech Stack Icons */
.icons-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.icons-container {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
}

.identifiers-icon {
    height: 50px;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease-in-out;
    background: rgba(var(--color-light), 0.5);
    border-radius: var(--small-border-radius);
}

.identifiers-icon:hover {
    background: rgba(var(--color-grey), 0.6);
}
.identifiers-icon:hover img, .identifiers-icon:hover svg {
    transform: scale(0.9);
}

.identifiers-icon img, .identifiers-icon svg {
    height: 45px;
    width: auto;
    transition: transform 0.2s ease-in-out;
}

/* Project Links */
.project-links-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(var(--color-light), 0.8);
    border-radius: var(--inner-border-radius);
    padding: 5px;
    margin: 0;
}

.project-link-container {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--small-border-radius);
    background: rgba(var(--color-grey), 0.2);
    height: 30px;
    width: 30px;
    padding: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.project-link-container:hover {
    background: rgba(var(--color-grey), 0.6);
    transform: translateY(-2px);
}

.project-link-container svg {
    height: 20px;
    width: 20px;
}

.project-link-container svg path {
    fill: rgba(var(--color-dark), 0.8);
}

/* Project Description */
.description {
    color: rgba(var(--color-dark), 0.8);
    margin: 0;
    gap: 10px;

}

.description p {
    font-size: 20px;
    margin: 5px;
    line-height: 1.4;
}

/* Featured Container */
.featured-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}


.featured-block {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--inner-border-radius);
    padding: 15px 10px;
    background-color: rgba(var(--color-grey), 0.2);
    text-align: center;
    flex: 1; /* This makes each block take equal space */
    min-height: 0;
    transition: all 0.2s ease-in-out;
}

.featured-block:hover {
    background: rgba(var(--color-grey), 0.6);
}

.featured-block p {
    white-space: pre-line;
    margin: 0;
    color: rgba(var(--color-dark), 0.8);
    font-weight: 600;
    line-height: 1.4;
}

/* Thumbnail Container */

.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0;
    background: rgba(var(--color-grey), 0);
    transition: max-height 0.5s ease-in-out,
    opacity 0.5s ease-in-out,
    background 0.5s ease-in-out,
    padding 0.5s ease-in-out;
    border-radius: var(--inner-border-radius);
}

.thumbnail-container.open {
    opacity: 1;
    margin: 0;
    background: rgba(var(--color-grey), 0.5);
    padding: 10px;
}

.thumbnail {
    width: 100%;
    border-radius: var(--inner-border-radius);
    object-fit: cover;
    aspect-ratio: initial;
    margin: auto 0;

}

/* Toggle Button */
.toggle-button {
    align-self: center;
    width: 70px;
    height: 40px;
    margin-top: 15px;
    background: rgba(var(--color-light), 0.7);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.toggle-button svg {
    transition: transform 0.3s ease;
}

.toggle-button.open svg {
    transform: rotate(180deg);
}
.toggle-button.open {
    margin-top: 30px;

}

.error-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
    flex: 1;
    padding: 10px;
}

.error-container p:not(.label) {
    margin: 10px;
    padding: 0;
    font-size: 20px;
}

.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;

}

.fullscreen-overlay img {
    max-height: 90%;
    max-width: 90%;
    object-fit: contain;
    border: 2px solid white;
    border-radius: var(--inner-border-radius);
    transition: all 0.3s ease;
}

/* Media Queries */
@media (max-width: 768px) {
    .project-upper-container {
        flex-direction: column;
    }

    .featured-container {
        flex-direction: column;
    }

    .thumbnail-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 480px) {
    .project-container {
        padding: 20px;
        border-radius: 25px;
    }

    .thumbnail-container {
        grid-template-columns: 1fr;

    }

    .project-header {
        flex-direction: row;
        /*align-items: space-between;*/
        gap: 10px;
    }

    .icons-row {
        flex-wrap: wrap;
    }
}