

/* Base styles */
body {
    font-family: 'Jost', sans-serif;
    padding-top: 80px;
}

/* Navbar Styles */
.navbar {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    min-height: 70px;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Desktop Menu */
@media (min-width: 992px) {
    .navbar-nav {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .nav-link {
        padding: 0.5rem 0 !important;
    }
}

/* Mobile Menu */
@media (max-width: 991px) {
    .navbar-collapse {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
    }

    .navbar-collapse.show {
        right: 0;
    }

    .nav-item {
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .navbar-collapse.show .nav-item {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0.2s;
    }

    body {
        padding-top: 70px;
    }
}

/* Hamburger Icon */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
    order: 2;
    margin-left: auto;
	 z-index: 1051;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    height: 2px;
    width: 24px;
    background: #333;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 24px;
    background: #333;
    left: 0;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    transform: translateY(-6px);
}

.navbar-toggler-icon::after {
    transform: translateY(6px);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
}

/* Menu Links */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: all 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2rem);
    left: 1rem;
}

.nav-link.active {
    color: #2563eb !important;
    font-weight: 500;
}

/* Article Styles */
.article-preview {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-preview img {
    max-width: 80%;
    height: auto;
    margin: 1rem 0;
    border-radius: 8px;
}

.article-body {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 8px;
}

.article-body pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

.article-body code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .article-body {
        font-size: 1rem;
    }
}
/* Editor Styles */
.editor-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ADD8E6;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.editor-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.editor-pane textarea {
    width: 100%;
    height: 500px;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: monospace;
    resize: vertical;
}

.preview-pane {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    overflow-y: auto;
}

.login-container {
    max-width: 400px;
    margin: 5rem auto;
    padding: 2rem;
    background: #ADD8E6;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.login-container input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
}
/* Image Manager Styles */
.image-manager {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-item {
    position: relative;
    border: 2px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}

.image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.image-item button {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0.5rem;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.image-item button:hover {
    background: rgba(0,0,0,0.9);
}

.upload-section {
    margin: 1rem 0;
    padding: 1rem;
    border: 2px dashed #eee;
    border-radius: 6px;
    text-align: center;
}

#image-upload {
    margin: 1rem 0;
}
.card-text.article-preview img {
    max-width: 100% !important;
    height: auto !important;
}
/* Comments Section */
#comments {
    padding-top: 3rem;
}

.comment {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

        /* Ticker Styles */
        .ticker-container {
            background-color: #f8f9fa;
            border-bottom: 1px solid #e9ecef;
            padding: 8px 0;
            overflow: hidden;
            position: relative;
        }
        .ticker-label {
            background-color: #dc3545;
            color: white;
            padding: 2px 12px;
            font-weight: 600;
            font-size: 0.85rem;
            border-radius: 4px;
            margin-right: 15px;
        }
        .ticker {
            display: inline-block;
            white-space: nowrap;
            animation: ticker-scroll 30s linear infinite;
        }
        .ticker:hover {
            animation-play-state: paused;
        }
        @keyframes ticker-scroll {
            0% { transform: translateX(100%); }
            100% { transform: translateX(-100%); }
        }
        .ticker-item {
            margin-right: 30px;
            display: inline-block;
        }
        .ticker-item a {
            color: #007bff;
            text-decoration: none;
            font-weight: 500;
        }
        .ticker-item a:hover {
            text-decoration: underline;
        }
        
        /* Adjust main content spacing */
        .container.main-content {
            margin-top: 20px;
            padding-top: 40px;
        }
/* Add to your CSS file */
.verified-badge {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #1DA1F2;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
}

.comment.card {
    transition: transform 0.3s ease;
}

.comment.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.admin-tools {
    background-color: #f8f9fa;
    border-radius: 4px;
}
/* Social buttons */
.btn-twitter {
    background-color: #1DA1F2;
    color: white;
}
.btn-facebook {
    background-color: #1877F2;
    color: white;
}
.btn-linkedin {
    background-color: #0A66C2;
    color: white;
}

/* Copy link button animation */
.copied::after {
    content: "Copied!";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}