/* Success.Social Custom Styles with Brand Colors */

/* Success.Social Brand Color Variables */
:root {
    --success-gold: #F4C842;
    --success-gold-hover: #E6B73A;
    --success-teal: #1E3A3A;
    --success-teal-light: #2A5555;
    --success-teal-dark: #0F2323;
}

/* Override Bootstrap primary colors with brand colors */
.text-primary {
    color: var(--success-gold) !important;
}

.btn-primary {
    background-color: var(--success-gold);
    border-color: var(--success-gold);
    color: var(--success-teal-dark);
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--success-gold-hover);
    border-color: var(--success-gold-hover);
    color: var(--success-teal-dark);
}

.btn-outline-primary {
    color: var(--success-gold);
    border-color: var(--success-gold);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--success-gold);
    border-color: var(--success-gold);
    color: var(--success-teal-dark);
}

/* Card enhancements with brand colors */
.card {
    border: 1px solid var(--success-teal-light);
    background-color: var(--success-teal);
    color: #ffffff; /* Ensure white text on dark teal background */
}

.card-title {
    color: var(--success-gold);
}

/* Ensure all text elements are visible on dark teal background */
.card .text-muted {
    color: #b8d4d4 !important; /* Light teal for muted text */
}

.card p, .card div, .card span, .card small {
    color: #ffffff;
}

.card .badge {
    color: #ffffff;
}

/* Fix specific text elements that might be hard to read */
.card-body h1, .card-body h2, .card-body h3, .card-body h4, .card-body h5, .card-body h6 {
    color: #ffffff;
}

.card-body .text-secondary {
    color: #b8d4d4 !important;
}

/* Use minimal custom styles - Bootstrap theme handles most styling */

/* Profile page specific styles with brand colors */
.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success-gold), var(--success-gold-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--success-teal-dark);
    font-weight: bold;
    border: 3px solid var(--success-teal-light);
}

/* Activity feed styles with brand colors */
.activity-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.activity-item:hover {
    background-color: var(--success-teal-light);
    border-radius: 0.375rem;
    border-left: 3px solid var(--success-gold);
    transform: translateX(2px);
}

/* Post content styling */
.post-content {
    color: #ffffff !important;
}

.post-content a {
    color: var(--success-gold) !important;
}

/* Time stamps and meta information */
.text-muted, small.text-muted {
    color: #b8d4d4 !important;
}

/* Homepage and general page styling */
body {
    color: #ffffff; /* Default white text */
}

/* Make sure lead text and other elements are visible */
.lead {
    color: #b8d4d4 !important;
}

/* Ensure all headings are visible */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
}

/* Alert styling improvements */
.alert {
    color: #ffffff;
}

.alert-success {
    background-color: var(--success-teal-light);
    border-color: var(--success-gold);
    color: #ffffff;
}

/* Badge styles with brand colors */
.badge {
    font-size: 0.75rem;
}

.badge.bg-success {
    background-color: var(--success-gold) !important;
    color: var(--success-teal-dark) !important;
    font-weight: 600;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
    color: #ffffff !important;
    font-weight: 600;
}

.badge.bg-primary {
    background-color: var(--success-gold) !important;
    color: var(--success-teal-dark) !important;
    font-weight: 600;
}

.badge.bg-warning {
    background-color: var(--success-gold-hover) !important;
    color: var(--success-teal-dark) !important;
    font-weight: 600;
}

/* Link button improvements with brand colors */
.btn-outline-primary:hover,
.btn-outline-warning:hover,
.btn-outline-info:hover,
.btn-outline-secondary:hover {
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.btn-outline-warning {
    color: var(--success-gold-hover);
    border-color: var(--success-gold-hover);
}

.btn-outline-warning:hover {
    background-color: var(--success-gold-hover);
    border-color: var(--success-gold-hover);
    color: var(--success-teal-dark);
}

/* Loading spinner positioning */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .card {
        border-radius: 0.5rem;
    }
    
    .btn {
        font-size: 0.875rem;
    }
}

/* Custom scrollbar for activity feed */
.activity-list {
    max-height: 600px;
    overflow-y: auto;
}

.activity-list::-webkit-scrollbar {
    width: 6px;
}

.activity-list::-webkit-scrollbar-track {
    background: var(--success-teal-dark);
}

.activity-list::-webkit-scrollbar-thumb {
    background: var(--success-gold);
    border-radius: 3px;
}

.activity-list::-webkit-scrollbar-thumb:hover {
    background: var(--success-gold-hover);
}

/* Alert customizations */
.alert-success {
    background-color: var(--success-teal);
    border-color: var(--success-gold);
    color: var(--bs-light);
}

/* Form controls */
.form-control:focus {
    border-color: var(--success-gold);
    box-shadow: 0 0 0 0.2rem rgba(244, 200, 66, 0.25);
}

/* Notification bell styling */
.btn-outline-secondary {
    border-color: var(--success-teal-light);
    color: var(--success-gold);
}

.btn-outline-secondary:hover {
    background-color: var(--success-gold);
    border-color: var(--success-gold);
    color: var(--success-teal-dark);
}

/* Additional brand styling enhancements */
.btn-warning {
    background-color: var(--success-gold-hover);
    border-color: var(--success-gold-hover);
    color: var(--success-teal-dark);
    font-weight: 600;
}

.btn-warning:hover {
    background-color: var(--success-gold);
    border-color: var(--success-gold);
    color: var(--success-teal-dark);
}

/* Link styling */
a {
    color: var(--success-gold);
}

a:hover {
    color: var(--success-gold-hover);
}
    background: var(--bs-primary);
}

/* Error and empty states */
.text-warning i,
.text-muted i {
    font-size: 2rem;
    opacity: 0.6;
}

/* News link buttons */
.news-links .btn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Notifications styling */
.list-group-item {
    background-color: var(--bs-body-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

.list-group-item.bg-primary-subtle {
    background-color: rgba(244, 200, 66, 0.1) !important;
    border-color: var(--success-gold);
    color: var(--bs-body-color) !important;
}

.list-group-item.bg-body-secondary {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
}

/* Feather icon alignment */
[data-feather] {
    vertical-align: middle;
    width: 1em;
    height: 1em;
}

/* Profile header spacing */
.profile-header {
    border-bottom: 1px solid var(--bs-border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

/* Timeline specific styles */
.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--bs-primary);
    border-radius: 50%;
}

/* Social follow button */
.follow-button {
    min-width: 100px;
}

/* Post type indicators */
.post-kind-article {
    background: var(--bs-info) !important;
}

.post-kind-news {
    background: var(--bs-warning) !important;
}

.post-kind-update {
    background: var(--bs-success) !important;
}

/* Utility classes for common patterns */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Focus states for accessibility */
.btn:focus,
.card:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Smooth transitions */
.btn,
.card,
.badge {
    transition: all 0.15s ease-in-out;
}
