/* 
 * CSS Geral - WPDEV Classificados
 * 
 * Estilos compartilhados entre admin e frontend.
 * Inclui utilitários, reset básico e componentes comuns.
 */

/* ========================================
   RESET E NORMALIZAÇÃO
   ======================================== */

.wpdev-reset * {
    box-sizing: border-box;
}

.wpdev-clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ========================================
   UTILITÁRIOS DE LAYOUT
   ======================================== */

.wpdev-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.wpdev-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.wpdev-col {
    flex: 1;
    padding: 0 15px;
}

.wpdev-col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.wpdev-col-3 { flex: 0 0 25%; max-width: 25%; }
.wpdev-col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.wpdev-col-6 { flex: 0 0 50%; max-width: 50%; }
.wpdev-col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.wpdev-col-9 { flex: 0 0 75%; max-width: 75%; }
.wpdev-col-12 { flex: 0 0 100%; max-width: 100%; }

/* ========================================
   UTILITÁRIOS DE TEXTO
   ======================================== */

.wpdev-text-left { text-align: left !important; }
.wpdev-text-center { text-align: center !important; }
.wpdev-text-right { text-align: right !important; }
.wpdev-text-justify { text-align: justify !important; }

.wpdev-text-uppercase { text-transform: uppercase !important; }
.wpdev-text-lowercase { text-transform: lowercase !important; }
.wpdev-text-capitalize { text-transform: capitalize !important; }

.wpdev-font-weight-light { font-weight: 300 !important; }
.wpdev-font-weight-normal { font-weight: 400 !important; }
.wpdev-font-weight-bold { font-weight: 700 !important; }

.wpdev-font-size-sm { font-size: 0.875rem !important; }
.wpdev-font-size-md { font-size: 1rem !important; }
.wpdev-font-size-lg { font-size: 1.25rem !important; }
.wpdev-font-size-xl { font-size: 1.5rem !important; }

/* ========================================
   UTILITÁRIOS DE ESPAÇAMENTO
   ======================================== */

.wpdev-m-0 { margin: 0 !important; }
.wpdev-m-1 { margin: 0.5rem !important; }
.wpdev-m-2 { margin: 1rem !important; }
.wpdev-m-3 { margin: 1.5rem !important; }
.wpdev-m-4 { margin: 2rem !important; }
.wpdev-m-5 { margin: 3rem !important; }

.wpdev-mt-0 { margin-top: 0 !important; }
.wpdev-mt-1 { margin-top: 0.5rem !important; }
.wpdev-mt-2 { margin-top: 1rem !important; }
.wpdev-mt-3 { margin-top: 1.5rem !important; }
.wpdev-mt-4 { margin-top: 2rem !important; }
.wpdev-mt-5 { margin-top: 3rem !important; }

.wpdev-mb-0 { margin-bottom: 0 !important; }
.wpdev-mb-1 { margin-bottom: 0.5rem !important; }
.wpdev-mb-2 { margin-bottom: 1rem !important; }
.wpdev-mb-3 { margin-bottom: 1.5rem !important; }
.wpdev-mb-4 { margin-bottom: 2rem !important; }
.wpdev-mb-5 { margin-bottom: 3rem !important; }

.wpdev-ml-0 { margin-left: 0 !important; }
.wpdev-ml-1 { margin-left: 0.5rem !important; }
.wpdev-ml-2 { margin-left: 1rem !important; }
.wpdev-ml-3 { margin-left: 1.5rem !important; }
.wpdev-ml-auto { margin-left: auto !important; }

.wpdev-mr-0 { margin-right: 0 !important; }
.wpdev-mr-1 { margin-right: 0.5rem !important; }
.wpdev-mr-2 { margin-right: 1rem !important; }
.wpdev-mr-3 { margin-right: 1.5rem !important; }
.wpdev-mr-auto { margin-right: auto !important; }

.wpdev-p-0 { padding: 0 !important; }
.wpdev-p-1 { padding: 0.5rem !important; }
.wpdev-p-2 { padding: 1rem !important; }
.wpdev-p-3 { padding: 1.5rem !important; }
.wpdev-p-4 { padding: 2rem !important; }
.wpdev-p-5 { padding: 3rem !important; }

.wpdev-pt-0 { padding-top: 0 !important; }
.wpdev-pt-1 { padding-top: 0.5rem !important; }
.wpdev-pt-2 { padding-top: 1rem !important; }
.wpdev-pt-3 { padding-top: 1.5rem !important; }
.wpdev-pt-4 { padding-top: 2rem !important; }
.wpdev-pt-5 { padding-top: 3rem !important; }

.wpdev-pb-0 { padding-bottom: 0 !important; }
.wpdev-pb-1 { padding-bottom: 0.5rem !important; }
.wpdev-pb-2 { padding-bottom: 1rem !important; }
.wpdev-pb-3 { padding-bottom: 1.5rem !important; }
.wpdev-pb-4 { padding-bottom: 2rem !important; }
.wpdev-pb-5 { padding-bottom: 3rem !important; }

.wpdev-pl-0 { padding-left: 0 !important; }
.wpdev-pl-1 { padding-left: 0.5rem !important; }
.wpdev-pl-2 { padding-left: 1rem !important; }
.wpdev-pl-3 { padding-left: 1.5rem !important; }

.wpdev-pr-0 { padding-right: 0 !important; }
.wpdev-pr-1 { padding-right: 0.5rem !important; }
.wpdev-pr-2 { padding-right: 1rem !important; }
.wpdev-pr-3 { padding-right: 1.5rem !important; }

/* ========================================
   UTILITÁRIOS DE DISPLAY
   ======================================== */

.wpdev-d-none { display: none !important; }
.wpdev-d-inline { display: inline !important; }
.wpdev-d-inline-block { display: inline-block !important; }
.wpdev-d-block { display: block !important; }
.wpdev-d-flex { display: flex !important; }
.wpdev-d-inline-flex { display: inline-flex !important; }

.wpdev-flex-row { flex-direction: row !important; }
.wpdev-flex-column { flex-direction: column !important; }
.wpdev-flex-wrap { flex-wrap: wrap !important; }
.wpdev-flex-nowrap { flex-wrap: nowrap !important; }

.wpdev-justify-content-start { justify-content: flex-start !important; }
.wpdev-justify-content-end { justify-content: flex-end !important; }
.wpdev-justify-content-center { justify-content: center !important; }
.wpdev-justify-content-between { justify-content: space-between !important; }
.wpdev-justify-content-around { justify-content: space-around !important; }

.wpdev-align-items-start { align-items: flex-start !important; }
.wpdev-align-items-end { align-items: flex-end !important; }
.wpdev-align-items-center { align-items: center !important; }
.wpdev-align-items-baseline { align-items: baseline !important; }
.wpdev-align-items-stretch { align-items: stretch !important; }

/* ========================================
   COMPONENTES BÁSICOS
   ======================================== */

.wpdev-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.wpdev-btn:hover {
    text-decoration: none;
}

.wpdev-btn-primary {
    color: #fff;
    background-color: #007cba;
    border-color: #007cba;
}

.wpdev-btn-primary:hover {
    color: #fff;
    background-color: #005a87;
    border-color: #005a87;
}

.wpdev-btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.wpdev-btn-secondary:hover {
    color: #fff;
    background-color: #545b62;
    border-color: #545b62;
}

.wpdev-btn-success {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

.wpdev-btn-success:hover {
    color: #fff;
    background-color: #1e7e34;
    border-color: #1e7e34;
}

.wpdev-btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.wpdev-btn-danger:hover {
    color: #fff;
    background-color: #c82333;
    border-color: #c82333;
}

.wpdev-btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

.wpdev-btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem;
    border-radius: 0.3rem;
}

/* ========================================
   CARDS BÁSICOS
   ======================================== */

.wpdev-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.wpdev-card-header {
    padding: 0.75rem 1.25rem;
    background-color: rgba(0, 0, 0, .03);
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    font-weight: 600;
}

.wpdev-card-body {
    padding: 1.25rem;
}

.wpdev-card-footer {
    padding: 0.75rem 1.25rem;
    background-color: rgba(0, 0, 0, .03);
    border-top: 1px solid rgba(0, 0, 0, .125);
}

/* ========================================
   ALERTAS E NOTIFICAÇÕES
   ======================================== */

.wpdev-alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.wpdev-alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.wpdev-alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.wpdev-alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.wpdev-alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 768px) {
    .wpdev-container {
        padding: 0 15px;
    }
    
    .wpdev-row {
        margin: 0 -10px;
    }
    
    .wpdev-col {
        padding: 0 10px;
    }
    
    [class*="wpdev-col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
}