/* Só a seção/listagem de projetos:
.projects
.projects-grid
.project-card
.project-links
*/

/* =========================
   PROJECTS SECTION
========================= */

.projects {
    padding: 0 0 60px;
}

.projects .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.projects h2 {
    margin: 0;
    font-size: 2.2rem;
}

/* =========================
   HEADER + FILTER
========================= */

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-top: 80px;
    margin-bottom: 20px;
}

.projects-sidebar {
    width: 260px;
    padding: 1rem;

    background: rgba(18, 18, 18, 0.95);

    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;

    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.05),
        0 20px 50px rgba(0, 0, 0, 0.35);

    font-size: 0.75rem;
}

.projects-sidebar p {
    margin: 0 0 10px;
    color: #f5f5f5;
    font-size: 5rem;
    font-weight: 600;
}

/* =========================
   FILTER DROPDOWN
========================= */

.technology-dropdown {
    position: relative;
    width: 100%;
}

.technology-dropdown-button {
    width: 100%;
    padding: 6px 10px;

    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;

    background: rgba(18, 18, 18, 0.95);
    color: #f5f5f5;

    cursor: pointer;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 0.95rem;
    font-weight: 900;
}

.technology-filter {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;

    z-index: 999;

    display: none;
    flex-direction: column;
    gap: 3px;

    width: 100%;
    box-sizing: border-box;

    padding: 10px;

    background: rgba(18, 18, 18, 0.98);

    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
}

.technology-dropdown.open .technology-filter {
    display: flex;
}

.technology-filter label {
    display: flex;
    align-items: center;
    gap: 6px;

    padding: 6px 8px;
    border-radius: 6px;

    color: #f5f5f5;

    cursor: pointer;
    font-size: 0.72rem;
    white-space: nowrap;
}

.technology-filter label:hover {
    background: rgba(212, 175, 55, 0.08);
}

.technology-filter label:has(input:checked) {
    background: rgba(212, 175, 55, 0.14);
    color: #d4af37;
}

.technology-filter label:has(input:checked)::after {
    content: "✓";
    margin-left: auto;
    color: #d4af37;
    font-weight: 700;
}

/* =========================
   COUNT + EMPTY
========================= */

.projects-count {
    margin: 0 0 16px;
    max-width: 760px;

    color: #d6d6d6;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
}

.projects-empty-state {
    max-width: 750px;
    padding: 3rem;
    text-align: center;

    color: #bdbdbd;
    font-size: 1rem;

    background: rgba(18, 18, 18, 0.95);

    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 22px;
}


.public-projects-table {
    width: 100%;
    border-collapse: collapse;

    background: rgba(15, 15, 15, 0.92);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 18px;
    overflow: hidden;
}

.public-projects-table th,
.public-projects-table td {
    padding: 18px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.public-projects-table th {
    color: #e3bd35;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.public-projects-table tr:last-child td {
    border-bottom: none;
}

.public-project-image {
    width: 110px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
}

.public-projects-table .button {
    width: fit-content;
}




/* =========================
   PROJECT LIST
========================= */

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 760px;
    margin-top: 20px;
}

.project-card {
    display: flex;
    align-items: center;
    gap: 24px;

    width: 100%;
    padding: 0.9rem 1rem;

    background: rgba(18, 18, 18, 0.95);

    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 18px;

    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.05),
        0 20px 50px rgba(0, 0, 0, 0.35);
}

.project-image {
    width: 120px;
    height: 76px;
    object-fit: cover;

    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);

    flex-shrink: 0;
}

.project-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}



.project-card {
    display: flex;
    align-items: center;
    gap: 18px;

    width: 100%;
    min-height: 88px;
    padding: 0.65rem 0.75rem;

    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;

    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.05),
        0 16px 38px rgba(0, 0, 0, 0.28);
}

.project-image {
    width: 105px;
    height: 66px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.project-card-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.project-card:hover h3 {
    color: #d4af37;
}

.project-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.project-card:hover h3 {
    color: #d4af37;
}

.project-summary {
    margin: 0;

    color: #d6d6d6;
    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.45;
}


.project-card {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    align-items: center;
    gap: 20px;

    width: 100%;
    padding: 0.7rem 0.85rem;

    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
}

.project-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-image {
    width: 110px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.project-card h3 {
    margin: 0;
    color: #d4af37;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
}

.project-summary {
    margin: 0;
    color: #d6d6d6;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.45;
    margin-top: 1rem;
}

.project-details-link {
    color: #d4af37;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.project-details-link:hover {
    text-decoration: underline;
}


.projects-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-top: 50px;
    margin-bottom: 42px;
}

.projects-content {
    display: grid;
    grid-template-columns: minmax(0, 760px) 260px;
    gap: 56px;
    align-items: start;
}

.projects-main {
    width: 100%;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 42px;
}

.projects-tools-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
    .projects {
        padding: 60px 0;
    }

    .projects-header {
        flex-direction: column;
        gap: 20px;
    }

    .projects-sidebar {
        width: 100%;
    }

    .projects-grid {
        max-width: 100%;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-image {
        width: 100%;
        height: 180px;
    }

    .project-card .button {
        width: fit-content;
    }

    .projects-count {
        max-width: 100%;
        text-align: left;
    }
}
