@import "../global.css";

article {
    padding-top: 100px;
    width: 100%;
}

article header {
    text-align: center;
}

article footer {
    margin-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.table-responsive {
    display: flex;
    justify-content: center;
    overflow-x: auto;
}

table {
    width: 100%;
    max-width: 1000px;
    border-collapse: collapse;
    font-size: 1.1rem;
}

caption {
    font-size: 1.5rem;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

@media (max-width: 900px) {
    caption {
        font-size: 1.5rem;
        text-align: center;
    }
}

th {
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 1.4rem;
}

td {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

td:first-child, th:first-child {
    text-align: left;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 900px) {
    th, td {
        padding: 15px 10px;
        font-size: 0.9rem;
    }
}

table img {
    border-radius: 12px;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

@media (max-width: 900px) {
    table img {
        width: 120px !important;
    }
}

table img:hover {
    transform: scale(1.05);
}

.details-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.details-modal {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    width: 90%;
    max-width: 700px;
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

#details-body p {
    padding-top: 20px;
    color: #86868b;
    line-height: 1.6;
    font-size: 1.1rem;
}
