/* ============================================
   CUSTOM DORADO THEME STYLES
   Color scheme: Dorado (#d4af37), Negro (#000000), Blanco
   ============================================ */

/* Button Styles - Success (Dorado) */
.btn-success {
    background-color: #d4af37 !important;
    border-color: #d4af37 !important;
    color: #000000 !important;
}

.btn-success:hover {
    background-color: #c9a332 !important;
    border-color: #c9a332 !important;
    color: #000000 !important;
}

.btn-success:focus,
.btn-success:focus-visible {
    background-color: #d4af37 !important;
    border-color: #d4af37 !important;
    color: #000000 !important;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.5) !important;
    outline: 0 !important;
}

.btn-success:active,
.btn-success.active {
    background-color: #c9a332 !important;
    border-color: #c9a332 !important;
    color: #000000 !important;
    box-shadow: inset 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
}

/* Button Styles - Warning (Dorado) */
.btn-warning {
    background-color: #d4af37 !important;
    border-color: #d4af37 !important;
    color: #000000 !important;
}

.btn-warning:hover {
    background-color: #c9a332 !important;
    border-color: #c9a332 !important;
    color: #000000 !important;
}

.btn-warning:focus,
.btn-warning:focus-visible {
    background-color: #d4af37 !important;
    border-color: #d4af37 !important;
    color: #000000 !important;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.5) !important;
    outline: 0 !important;
}

.btn-warning:active,
.btn-warning.active {
    background-color: #c9a332 !important;
    border-color: #c9a332 !important;
    color: #000000 !important;
    box-shadow: inset 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
}

/* Button Styles - Primary (White with Dorado Border) */
.btn-primary {
    background-color: #ffffff !important;
    border: 2px solid #d4af37 !important;
    color: #d4af37 !important;
}

.btn-primary:hover {
    background-color: #d4af37 !important;
    border-color: #d4af37 !important;
    color: #000000 !important;
}

.btn-primary:focus,
.btn-primary:focus-visible {
    background-color: #ffffff !important;
    border-color: #d4af37 !important;
    color: #d4af37 !important;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.5) !important;
    outline: 0 !important;
}

.btn-primary:active,
.btn-primary.active {
    background-color: #d4af37 !important;
    border-color: #d4af37 !important;
    color: #000000 !important;
    box-shadow: inset 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
}

/* Checkbox Styles - Dorado */
.form-check-input:checked {
    background-color: #d4af37 !important;
    border-color: #d4af37 !important;
}

.form-check-input:checked:focus {
    background-color: #d4af37 !important;
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.5) !important;
}

.form-check-input:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25) !important;
}

/* Dashboard Styles */
.dashboard-header {
    background: transparent;
    color: #000000;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.stats-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.table-actions a,
.table-actions button {
    margin-right: 0.5rem;
}

.filter-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.badge-published {
    background: #198754;
}

.badge-draft {
    background: #6c757d;
}

/* Alert Styles */
.alert-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #6c757d;
    border-color: rgba(255, 193, 7, 0.35);
}

.alert-success {
    background: rgba(212, 175, 55, 0.15);
    color: #856404;
    border-color: rgba(212, 175, 55, 0.35);
}

/* ============================================
   BODY BACKGROUND
   ============================================ */
body {
    background: #f8f9fa;
}

/* ============================================
   CATEGORY STYLES
   ============================================ */
.category-card {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: white;
}

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

.btn-view-category {
    border: 2px solid #d4af37;
    color: #d4af37;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-view-category:hover {
    background-color: #d4af37;
    color: #000;
    border-color: #d4af37;
}

.badge-category {
    background-color: #d4af37;
    color: #000;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* ============================================
   POST CARD STYLES
   ============================================ */
.post-card {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: white;
}

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

/* ============================================
   BUTTON VIEW STYLES
   ============================================ */
.btn-view {
    border: 2px solid #d4af37;
    color: #d4af37;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background-color: #d4af37;
    color: #000;
    border-color: #d4af37;
}

/* ============================================
   BUTTON BACK STYLES
   ============================================ */
.btn-back {
    border: 2px solid #6c757d;
    color: #6c757d;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

/* ============================================
   AUTH PAGES STYLES
   ============================================ */
body.auth-page {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
}

.login-overlay {
    background: rgba(0, 0, 0, 0.65);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
}

.login-card {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    max-width: 480px;
    width: 100%;
    color: #f8f9fa;
}

.login-card .form-control {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.login-card .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #c59d0a;
    box-shadow: none;
    color: #fff;
}

.login-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-card .btn-primary {
    background: #c59d0a;
    border-color: #c59d0a;
    font-weight: 600;
    color: #000;
}

.login-card .btn-primary:hover {
    background: #b08807;
    border-color: #b08807;
    color: #000;
}

.logo-lockup img {
    max-height: 90px;
}

.login-card .form-label {
    color: #e9ecef;
}

.login-card .alert-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #ffda6a;
    border-color: rgba(255, 193, 7, 0.35);
}

.login-card a {
    color: #c59d0a;
    text-decoration: none;
}

.login-card a:hover {
    color: #b08807;
    text-decoration: underline;
}

/* Blog Card Styles */
.blog-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.blog-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-img img.logo-placeholder {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.blog-card .card-body {
    padding: 1.5rem;
}

.blog-card .card-title a {
    text-decoration: none;
}

.blog-card .card-text {
    font-size: 0.95rem;
    flex-grow: 1;
    font-style: italic;
    min-height: 3rem;
    display: flex;
    align-items: center;
}

/* Badge Styles - General para todas las vistas de blog */
.badge {
    background-color: #d4af37 !important;
    color: #000 !important;
}

.blog-card .badge {
    background-color: #d4af37;
    color: #000;
    font-size: 0.75rem;
}

.blog-card .actions-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.blog-card .likes-count {
    font-size: 1rem;
}

.blog-card .btn-view-more {
    background-color: #d4af37;
    color: #000;
    border: none;
    text-decoration: none;
}

.blog-card .btn-view-more:hover {
    background-color: #c9a332;
    color: #000;
}

/* Blog Show Page Styles */
.post-img-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    min-height: 300px;
}

.post-img-container img.logo-placeholder {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.post-excerpt {
    font-style: italic;
    color: #6c757d;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.post-actions {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

/* Sidebar Recent Posts - Smaller Cards */
.sidebar .blog-card-img {
    height: 150px;
}

.sidebar .blog-card .card-body {
    padding: 1rem;
}

.sidebar .blog-card .card-text {
    font-size: 0.85rem;
}

.sidebar .blog-card .badge {
    font-size: 0.7rem;
}

.sidebar .blog-card .actions-footer {
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.sidebar .blog-card-img img.logo-placeholder {
    width: 60px;
    height: 60px;
}

.sidebar .likes-count {
    font-size: 0.85rem;
}

.sidebar .btn-view-more {
    font-size: 0.85rem;
}

/* Blog Details Section - Reducir padding */
#blog-details.section {
    padding: 30px 0 !important;
}
