:root {
    --primary-color: #4169E1;
    --secondary-color: #6C757D;
    --accent-color: #FFA500;
    --light-bg: #F8F9FA;
    --dark-bg: #212529;
    --text-color: #333333;
    --border-radius: 10px;
    --box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    padding-top: 76px;
}

.main-content {
    padding-top: inherit;
    min-height: calc(100vh - 400px);
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

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

/* Username in navbar */
#navbarDropdown {
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    display: inline-block;
}

@media (max-width: 1200px) {
    .navbar .nav-link {
        padding: 0.5rem 0.75rem;
        max-width: 150px;
    }
    
    #navbarDropdown {
        max-width: 120px;
    }
}

@media (max-width: 992px) {
    .navbar .nav-link {
        max-width: none;
    }
    
    #navbarDropdown {
        max-width: none;
    }
}

/* Landing Page */
.landing-hero {
    background: linear-gradient(135deg, var(--primary-color), #1e3c72);
    color: white;
    padding: 80px 0;
    margin-top: -76px;
}

.hero-logo {
    max-height: 80px;
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--box-shadow);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-wrapper i {
    font-size: 24px;
    color: white;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.feature-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li:before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Cards for existing pages */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-3px);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

/* Forms */
.form-control {
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(65, 105, 225, 0.25);
    border-color: var(--primary-color);
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #3557b7;
    border-color: #3557b7;
    transform: translateY(-1px);
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.footer h5 {
    color: white;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .landing-hero {
        padding: 60px 0;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* General Styles */
body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Post Styles */
.post-image {
    max-height: 600px;
    object-fit: contain;
}

.like-btn {
    color: #6c757d;
    transition: color 0.2s;
}

.like-btn:hover,
.like-btn.text-danger {
    color: #dc3545 !important;
}

/* Comment Styles */
.comments-list {
    max-height: 300px;
    overflow-y: auto;
}

/* Chat Styles */
.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.message-content {
    border-radius: 1rem;
}

/* Profile Styles */
.profile-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

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

    .card-body {
        padding: 1rem;
    }

    .profile-header {
        padding: 1rem 0;
    }
}

/* Animation Styles */
.fade-enter {
    opacity: 0;
}

.fade-enter-active {
    opacity: 1;
    transition: opacity 300ms ease-in;
}

.fade-exit {
    opacity: 1;
}

.fade-exit-active {
    opacity: 0;
    transition: opacity 300ms ease-out;
}

/* Custom Button Styles */
.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
}

/* Custom Form Styles */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Loading Spinner */
.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 0.25rem solid #f3f3f3;
    border-top: 0.25rem solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notifications */
.notification-bell {
    color: var(--secondary-color);
    transition: color 0.2s ease;
}

.notification-bell.has-notifications {
    color: #dc3545;  /* Bootstrap's danger red color */
}

.notifications-dropdown {
    min-width: 300px;
    max-width: 400px;
}

/* Mobile and Tablet Responsive Styles */
@media (max-width: 992px) {
    .notifications-dropdown {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: calc(100vh - 60px) !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        z-index: 1050 !important;
    }

    .notifications-list {
        max-height: calc(100vh - 120px) !important;
        -webkit-overflow-scrolling: touch;
    }
}

/* Small Mobile Specific Adjustments */
@media (max-width: 576px) {
    .notifications-dropdown {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: calc(100vh - 60px) !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
    }

    .notifications-list {
        max-height: calc(100vh - 120px) !important;
    }
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: rgba(0,0,0,0.02);
}

.notification-item.unread {
    background-color: rgba(13, 110, 253, 0.05);
}

.notification-item.unread:hover {
    background-color: rgba(13, 110, 253, 0.08);
}

.notification-item i {
    font-size: 1.2rem;
}

.notification-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
}

.notification-item small {
    font-size: 0.75rem;
}

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

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

.notifications-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.notifications-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

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