/**
 * ==========================================
 * ADDITIONAL COMPONENT STYLES
 * Extended form, card, and badge styles
 * ==========================================
 */

/* ============================================================
   ADDITIONAL FORM STYLES
   ============================================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-check {
    padding-left: 0;
    margin-bottom: 0.75rem;
}

.form-check-input {
    cursor: pointer;
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.2em;
    border: 2px solid #d0d0d0;
    border-radius: 0.3em;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

.form-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* ============================================================
   CONTENT CARDS (POSTS, PAGES, MOBILES)
   ============================================================ */
.content-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
}

.content-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-card:hover .content-card-image {
    transform: scale(1.05);
}

.content-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.content-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.content-card:hover .content-card-title {
    color: #6366f1;
}

.content-card-excerpt {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.content-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #9ca3af;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.content-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.content-card-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f0f7ff;
    color: #0d3b66;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* ============================================================
   CATEGORY & TAG BADGE STYLES
   ============================================================ */
.category-badge,
.tag-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.category-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tag-badge {
    background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    color: white;
}

.tag-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

/* ============================================================
   RESPONSIVE STYLES FOR CONTENT CARDS
   ============================================================ */
@media (max-width: 768px) {
    .content-card-image {
        height: 150px;
    }

    .content-card-body {
        padding: 1rem;
    }

    .content-card-title {
        font-size: 1rem;
    }

    .content-card-excerpt {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .content-card-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .content-card-meta-item {
        width: 100%;
    }
}

/* ============================================================
   DARK MODE: COMPONENTS
   ============================================================ */
[data-bs-theme="dark"] .content-card {
    background: #1e293b;
    border-color: #334155;
}

[data-bs-theme="dark"] .content-card:hover {
    border-color: #6366f1;
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.2);
}

[data-bs-theme="dark"] .content-card-title {
    color: var(--text-dark);
}

[data-bs-theme="dark"] .content-card:hover .content-card-title {
    color: #a5b4fc;
}

[data-bs-theme="dark"] .content-card-excerpt {
    color: var(--text-dark-secondary);
}

[data-bs-theme="dark"] .content-card-meta {
    color: #64748b;
    border-top-color: #334155;
}

[data-bs-theme="dark"] .content-card-badge {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

[data-bs-theme="dark"] .form-label {
    color: var(--text-dark-secondary);
}

[data-bs-theme="dark"] .form-text {
    color: #94a3b8;
}

[data-bs-theme="dark"] .form-check-input {
    background-color: #0f172a;
    border-color: #475569;
}

[data-bs-theme="dark"] .form-check-input:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}

[data-bs-theme="dark"] .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

[data-bs-theme="dark"] .form-group {
    margin-bottom: 1.5rem;
}
