/* BOLO CMS Custom Styles */

/* Global Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Georgian Font Support */
@font-face {
    font-family: 'NotoSansGeorgian';
    src: url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@400;500;700&display=swap');
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.georgian-text {
    font-family: 'NotoSansGeorgian', 'Inter', sans-serif;
}

/* Header & Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Post Cards */
.post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-card .card-title {
    font-weight: 700;
}

.post-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.post-card .card-footer {
    background-color: transparent;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
}

/* Featured Post */
.featured-post {
    margin-bottom: 2rem;
}

.featured-post .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.featured-post .card-img-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.featured-post .card-title {
    color: #fff;
    font-size: 1.75rem;
}

.featured-post .card-text {
    color: rgba(255, 255, 255, 0.9);
}

/* Single Post */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-meta {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.post-header {
    margin-bottom: 2rem;
}

.post-image {
    margin-bottom: 1.5rem;
    border-radius: 5px;
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

/* Categories */
.category-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.category-badge:hover {
    background-color: darken(var(--primary-color), 10%);
    color: white;
    text-decoration: none;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar .card {
    margin-bottom: 1.5rem;
}

.sidebar .card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

/* Footer */
footer {
    background-color: #343a40;
    color: white;
    padding: 3rem 0;
}

footer h5 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
    text-decoration: none;
}

/* Facebook Login Button */
.btn-facebook {
    background-color: #3b5998;
    border-color: #3b5998;
    color: white;
}

.btn-facebook:hover {
    background-color: #2d4373;
    border-color: #2d4373;
    color: white;
}

/* Admin Dashboard */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background-color: #343a40;
    padding-top: 1rem;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link i {
    margin-right: 0.5rem;
}

.admin-content {
    padding: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .featured-post .card-title {
        font-size: 1.25rem;
    }
    
    .admin-sidebar {
        min-height: auto;
    }
}

/* Form Styles */
.required-label::after {
    content: " *";
    color: red;
}

/* Language Switcher */
.language-switcher {
    display: inline-flex;
    align-items: center;
    margin-left: 1rem;
}

.language-switcher .nav-link {
    padding: 0.25rem 0.5rem;
    font-weight: 500;
}

/* Search */
.search-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Pagination */
.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link {
    color: var(--primary-color);
}

/* Utilities */
.bg-light-gray {
    background-color: #f4f4f4;
}

.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;
}