/**
 * AI Code Cloud — Frontend CSS
 *
 * Stili con prefisso acc-* per evitare conflitti.
 * Si adatta al tema attivo ereditando font-family e colori base.
 */

/* Wrapper */
.acc-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: inherit;
    color: inherit;
    line-height: inherit;
}

/* Project Card */
.acc-project-card {
    border: 1px solid #dde1e7;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}
.acc-project-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.acc-project-card h3 {
    margin: 0 0 8px;
    font-size: 1.3em;
    color: inherit;
    font-family: inherit;
    line-height: 1.3;
}

/* Descrizione */
.acc-desc {
    color: #555;
    margin: 0 0 12px;
    font-size: 0.95em;
}

/* Categorie */
.acc-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.acc-category-badge {
    display: inline-block;
    padding: 3px 12px;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
    line-height: 1.5;
    border: 1px solid #c7d2fe;
}

/* Meta info */
.acc-meta {
    font-size: 0.85em;
    color: #777;
    display: inline-block;
    margin-right: 16px;
    margin-bottom: 8px;
}

/* Changelog */
.acc-changelog {
    background: #f8f9ff;
    border-left: 3px solid #2563eb;
    padding: 10px 16px;
    margin: 12px 0;
    font-size: 0.9em;
    color: #333;
    border-radius: 0 4px 4px 0;
    line-height: 1.6;
}

/* Files table wrapper */
.acc-files-table-wrapper {
    overflow-x: auto;
    margin: 16px 0;
    -webkit-overflow-scrolling: touch;
}

/* Files table */
.acc-files-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}
.acc-files-table th {
    background: #f0f2f5;
    text-align: left;
    padding: 10px 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dde1e7;
}
.acc-files-table td {
    padding: 9px 14px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.acc-files-table tr:last-child td {
    border-bottom: none;
}
.acc-files-table tr:hover td {
    background: #fafbfc;
}

/* Download link */
.acc-btn-download {
    color: #2563eb;
    text-decoration: underline;
    white-space: nowrap;
    font-weight: 500;
    transition: color 0.2s;
}
.acc-btn-download:hover {
    color: #1d4ed8;
}

/* ZIP button */
.acc-btn-zip {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 22px;
    background: #2563eb;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    min-height: 44px;
    line-height: 1.6;
    transition: background-color 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
}
.acc-btn-zip:hover {
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
}
.acc-btn-zip:active {
    transform: scale(0.98);
}

/* No files */
.acc-no-files {
    color: #888;
    font-style: italic;
    margin: 12px 0 0;
}

/* Empty / Login messages */
.acc-empty,
.acc-login-msg {
    color: #666;
    padding: 24px 16px;
    text-align: center;
    font-size: 1em;
}
.acc-login-msg a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
}
.acc-login-msg a:hover {
    color: #1d4ed8;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
    .acc-wrapper {
        padding: 0 8px;
    }
    .acc-project-card {
        padding: 16px;
    }
    .acc-project-card h3 {
        font-size: 1.1em;
    }
    .acc-btn-zip {
        display: block;
        text-align: center;
        margin-top: 12px;
    }
    .acc-meta {
        display: block;
        margin-right: 0;
        margin-bottom: 4px;
    }
    .acc-files-table th,
    .acc-files-table td {
        padding: 7px 10px;
        font-size: 0.85em;
    }
}
