/* ========================================== */
/* COMPONENT STYLES */
/* ========================================== */

/* ========================================== */
/* BUTTONS */
/* ========================================== */

.btn {
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-normal);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 4px 6px rgba(74, 108, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(74, 108, 247, 0.4);
}

.btn-secondary {
    background: #64748b;
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    background: #fff;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-more {
    border: 1px solid var(--border-color);
    color: var(--muted-color);
    background: #fff;
}

.btn-more:hover,
.btn-more:focus {
    color: var(--dark-color);
    background: #fff;
    border-color: var(--border-color);
    box-shadow: none;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.icon-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.65rem !important;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0 !important;
    font-weight: var(--font-weight-semibold);
    min-width: 42px;
    justify-content: center;
}

.icon-action:hover,
.icon-action:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.16);
}

/* ========================================== */
/* BADGES */
/* ========================================== */

.badge {
    padding: 0.5rem 0.75rem;
    font-weight: var(--font-weight-semibold);
    border-radius: 6px;
}

/* User Role Badges - Standard Size */
.user-role {
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.user-role.admin {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
}

.user-role.moderator {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
}

.user-role.user {
    background: #94a3b8;
    color: white;
}

.user-role.sponsor {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: #1f2937;
}

.user-role.guest {
    background: #cbd5f5;
    color: #1e3a8a;
}

/* User Role Badges - Small Size */
.user-role-badge {
    font-size: 0.7rem;
    font-weight: var(--font-weight-semibold);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.user-role-badge.admin {
    background: #dc2626;
    color: white;
}

.user-role-badge.moderator {
    background: #2563eb;
    color: white;
}

.user-role-badge.user {
    background: #94a3b8;
    color: white;
}

.user-role-badge.sponsor {
    background: #f59e0b;
    color: #1f2937;
}

.user-role-badge.guest {
    background: #cbd5e1;
    color: #1e3a8a;
}

/* Notification Badge */
.notification-badge {
    position: relative;
    top: -10px;
    right: 5px;
    font-size: 0.7rem;
    animation: pulse 2s infinite;
}

/* Pill Badge */
.pill {
    background: #f1f5f9;
    border-radius: var(--radius-full);
    padding: 0.45rem 0.85rem;
    color: #334155;
    font-weight: var(--font-weight-bold);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ========================================== */
/* CARDS */
/* ========================================== */

.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-weight: var(--font-weight-bold);
    padding: 1.25rem;
    border: none;
}

/* Blog Card */
.blog-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-thumb-wrapper {
    background: linear-gradient(120deg, rgba(31, 59, 115, 0.12), rgba(14, 165, 233, 0.1));
}

.blog-thumb-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.blog-thumb-placeholder {
    height: 230px;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 0.75rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.3px;
}

.blog-meta {
    color: var(--muted-color);
    font-size: 0.9rem;
    gap: 1rem;
}

.blog-card .card-body {
    padding: 1.3rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.blog-card .card-title {
    margin-bottom: 0;
}

.blog-card .card-text {
    flex: 1 1 auto;
}

.blog-hero {
    background: linear-gradient(120deg, rgba(31, 59, 115, 0.08), rgba(14, 165, 233, 0.06));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

/* Post Card */
.post-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-fast);
    padding: 0.75rem;
    background: #fff;
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.post-card .row {
    align-items: stretch;
}

.post-author-section {
    background: #f8fafc;
    border-right: 1px solid var(--border-color);
    padding: 1.15rem 1rem;
    height: 100%;
    border-radius: 10px;
}

.post-content-section {
    padding: 1.2rem 1.45rem;
}

.post-content {
    color: #111827;
    line-height: 1.7;
    word-break: break-word;
}

@media (max-width: 991.98px) {
    .post-author-section {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 0.75rem;
    }

    .post-content-section {
        padding-top: 0.5rem;
    }
}

/* ========================================== */
/* ALERTS */
/* ========================================== */

.alert {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* ========================================== */
/* FORMS */
/* ========================================== */

.form-control, .form-select {
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: all var(--transition-normal);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 108, 247, 0.25);
}

/* ========================================== */
/* DROPDOWNS */
/* ========================================== */

.dropdown-menu {
    min-width: 300px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: none;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    transition: all var(--transition-normal);
}

.dropdown-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
    transform: translateX(5px);
}

.action-menu {
    min-width: 110px;
    padding: 0.35rem 0.35rem;
}

.action-menu .dropdown-item {
    padding: 0.35rem 0.5rem;
    font-size: 0.9rem;
}

/* ========================================== */
/* LIKE BUTTONS */
/* ========================================== */

.like-button {
    cursor: pointer;
    border: none;
    background: none;
    color: #94a3b8;
    font-size: 1.3rem;
    transition: all var(--transition-normal);
}

.like-button:hover {
    color: var(--danger-color);
    transform: scale(1.2);
}

.like-button.liked {
    color: var(--danger-color);
    animation: heartbeat 0.3s ease;
}

.like-button-small {
    cursor: pointer;
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.like-button-small:hover {
    color: var(--danger-color);
    transform: scale(1.1);
}

.like-button-small.liked {
    color: var(--danger-color);
}

/* ========================================== */
/* REPLY STYLES */
/* ========================================== */

.reply-compact {
    background: #f8fafc;
    border-left: 3px solid #cbd5e1;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all var(--transition-normal);
}

.reply-compact:hover {
    background: #f1f5f9;
    border-left-color: var(--primary-color);
}

.reply-header {
    margin-bottom: 0.75rem;
}

.reply-content {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
}

.reply-actions {
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

/* ========================================== */
/* NOTIFICATION ITEM */
/* ========================================== */

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.notification-item:hover {
    background: var(--light-color);
}

.notification-item.unread {
    background: #dbeafe;
}
