/* Frontend Styles para Casos de Uso */

/* Estilos já incluídos nos shortcodes, mas aqui para casos específicos */

.caso-uso-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.caso-uso-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--pd-dark, #210060), var(--pd-accent, #5D2CF7));
    color: white;
    border-radius: 12px;
}

.caso-uso-header h1 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.caso-uso-symbol {
    font-size: 4em;
    margin-bottom: 20px;
    display: block;
}

.caso-uso-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.9em;
    opacity: 0.9;
}

.caso-uso-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.caso-uso-archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.caso-uso-archive-header h1 {
    font-size: 2.2em;
    color: var(--pd-dark, #210060);
    margin-bottom: 10px;
}

.caso-uso-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.caso-uso-filter {
    padding: 8px 16px;
    border: 1px solid var(--pd-border, #eef0f4);
    border-radius: 20px;
    text-decoration: none;
    color: var(--pd-text-secondary, #555);
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.caso-uso-filter:hover,
.caso-uso-filter.active {
    background: var(--pd-accent, #5D2CF7);
    color: white;
    border-color: var(--pd-accent, #5D2CF7);
}


.caso-uso-breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9em;
    color: var(--pd-text-secondary, #555);
}

.caso-uso-breadcrumb a {
    color: var(--pd-accent, #5D2CF7);
    text-decoration: none;
}

.caso-uso-breadcrumb a:hover {
    text-decoration: underline;
}


/* Responsivo */
@media (max-width: 768px) {
    .caso-uso-single,
    .caso-uso-archive {
        padding: 10px;
    }
    
    .caso-uso-header {
        padding: 30px 15px;
    }
    
    .caso-uso-header h1 {
        font-size: 2em;
    }
    
    .caso-uso-symbol {
        font-size: 3em;
    }
    
    .caso-uso-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Estilos para tabelas responsivas */
    .pd-card table,
    .caso-uso-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
        font-size: 14px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .pd-card table th,
    .pd-card table td,
    .caso-uso-content table th,
    .caso-uso-content table td {
        padding: 8px 12px;
        border: 1px solid var(--pd-border, #eef0f4);
        text-align: left;
        min-width: 120px;
        white-space: normal;
    }
    
    .pd-card table th,
    .caso-uso-content table th {
        background-color: var(--pd-bg-alt, #f9faff);
        font-weight: 600;
        color: var(--pd-dark, #210060);
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .pd-card table tr:nth-child(even),
    .caso-uso-content table tr:nth-child(even) {
        background-color: var(--pd-bg-alt, #f9faff);
    }
    
    /* Container para tabelas com scroll horizontal */
    .pd-card .table-responsive,
    .caso-uso-content .table-responsive {
        overflow-x: auto;
        margin: 20px -5px;
        padding: 0 5px;
    }
    
    .pd-card .table-responsive table,
    .caso-uso-content .table-responsive table {
        margin: 0;
        min-width: 600px;
    }
    
}
