/* Custom Styles for Namb Social Network */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
}

body {
    background-color: #f8f9fa;
    /* Subtle fabric thread pattern */
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 19px, rgba(0, 0, 0, 0.03) 20px),
        repeating-linear-gradient(135deg, transparent, transparent 19px, rgba(0, 0, 0, 0.03) 20px);
    background-size: 30px 30px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
}

/* LiteLoom Logo Styles */
.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.brand-lite {
    color: #fff;
}

.brand-loom {
    color: #a6c8ff;
    /* Lighter shade for contrast */
}

/* Post Card Styles */
.post-card {
    transition: box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-card img {
    max-width: 100%;
    height: auto;
}

/* Post User Info - Reduced Prominence */
.post-card .d-flex.align-items-center>div h6 {
    font-size: 0.85rem;
    font-weight: 600;
}

.post-card .d-flex.align-items-center>div small {
    font-size: 0.75rem;
    color: #999 !important;
}

/* Post Actions - Compact and Subtle */
.post-actions {
    background: linear-gradient(135deg, #fafbfc 0%, #f3f4f6 100%);
    padding: 0.75rem !important;
    font-size: 0.85rem;
}

.post-actions h6 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem !important;
}

.post-actions .card {
    transition: transform 0.2s ease;
    border: 1px solid #e9ecef;
}

.post-actions .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.post-actions .card-body {
    padding: 0.5rem !important;
}

.post-actions .card-title {
    font-size: 0.8rem !important;
}

.post-actions .card-text {
    font-size: 0.85rem !important;
}

.post-actions .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.post-actions .d-flex strong {
    font-size: 0.85rem;
}

.post-actions .d-flex .small {
    font-size: 0.75rem !important;
}

/* Button Styles */
.btn-group .btn {
    transition: all 0.2s ease;
}

.btn-group .btn:hover {
    transform: scale(1.05);
}

.like-btn .bi-heart-fill {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Comments Section */
.comments-section {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Profile Picture */
.rounded-circle {
    object-fit: cover;
}

/* Sticky Sidebar */
.sticky-top {
    z-index: 1020;
}

/* Loading Animation */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Notification Badge */
#notification-count {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

/* Dropdown Menu */
.dropdown-menu {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Link Styles */
a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: #0a58ca;
}

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

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .post-card {
        margin-bottom: 0.5rem;
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Floating Action Button */
.floating-action-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.floating-action-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.4);
    color: white;
}

.floating-action-btn:active {
    transform: translateY(0) scale(0.95);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1030;
    padding: 0 10px;
}

.bottom-nav .nav-item {
    flex: 1;
    text-align: center;
}

.bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    padding: 5px 0;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
}

.bottom-nav .nav-link i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.bottom-nav .nav-link.active {
    color: var(--primary-color);
}

.bottom-nav .nav-link:hover {
    color: var(--primary-color);
}

.bottom-nav .notification-badge {
    position: absolute;
    top: 5px;
    right: 25%;
    padding: 4px;
}

.bottom-nav .cart-badge-nav {
    position: absolute;
    top: 2px;
    right: 20%;
    font-size: 0.65rem;
    padding: 2px 5px;
}

/* Adjust main content padding for bottom nav */
main {
    padding-bottom: 80px !important;
}

/* Hide floating action button if needed or adjust it */
.floating-action-btn {
    bottom: 80px;
    /* Move it above bottom nav */
}

/* Dropup for notifications in bottom nav */
.bottom-nav .dropup .dropdown-menu {
    bottom: 100%;
    top: auto;
    margin-bottom: 10px;
    transform: translateX(-50%);
    left: 50%;
}


@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}