/* Advanced Content Manager - Public Styles */

.acm-public-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.acm-search-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    align-items: flex-end;
}

.acm-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.acm-filter-group label {
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

.acm-search-nombre,
.acm-search-input,
.acm-search-numero,
.acm-per-page {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fff;
    height: 45px;
    transition: all 0.3s;
}

.acm-search-nombre:focus,
.acm-search-input:focus,
.acm-search-numero:focus,
.acm-per-page:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34,113,177,0.1);
}

.acm-search-button {
    padding: 0 30px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    height: 45px;
}

.acm-search-button:hover {
    background: #135e96;
}

/* Cards Grid */
.acm-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.acm-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.acm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.acm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.acm-card-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1d2327;
    line-height: 1.4;
}

.acm-card-number {
    background: #e7f0f7;
    color: #2271b1;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.acm-card-body {
    flex-grow: 1;
    margin-bottom: 20px;
}

.acm-card-body p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.acm-card-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.acm-view-details {
    background: none;
    border: none;
    color: #2271b1;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}

.acm-view-details:hover {
    text-decoration: underline;
}

/* Detail View */
.acm-detail-view {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-top: 20px;
}

.acm-back-button {
    background: #f0f0f1;
    border: 1px solid #dcdcde;
    color: #3c434a;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 30px;
    transition: all 0.2s;
}

.acm-back-button:hover {
    background: #e0e0e0;
    border-color: #c3c4c7;
}

.acm-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.acm-detail-title {
    font-size: 36px;
    margin: 0;
    color: #1d2327;
}

.acm-detail-numbers {
    font-size: 20px;
    font-weight: 700;
    color: #2271b1;
    background: #e7f0f7;
    padding: 5px 15px;
    border-radius: 8px;
    margin: 0;
}

.acm-detail-description {
    font-size: 20px;
    color: #50575e;
    line-height: 1.6;
    margin-bottom: 30px;
}

.acm-detail-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

.acm-detail-body {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

/* Pagination */
.acm-pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding: 20px;
}

.acm-page-btn {
    padding: 8px 16px;
    background: #fff;
    color: #2271b1;
    border: 1px solid #2271b1;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.acm-page-btn:hover {
    background: #2271b1;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .acm-search-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .acm-filter-group {
        min-width: 100%;
    }
    
    .acm-detail-view {
        padding: 20px;
    }
    
    .acm-detail-title {
        font-size: 28px;
    }
}
