/* Custom styles for InsightFeed */

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #dc3545 !important;
}

/* Search Bar Section */
.bg-light {
    background-color: #f8f9fa !important;
}

.container-fluid.px-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.input-group-lg .form-control {
    border-radius: 0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.input-group-lg .input-group-text {
    border-radius: 8px 0 0 8px;
    border-right: none;
    background-color: white;
    padding: 0.75rem 1rem;
}

.input-group-lg .btn {
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
}

.input-group-lg .btn:hover {
    background-color: #c82333;
    border-color: #c82333;
    transform: translateY(-1px);
}

/* Full width containers */
.container-fluid.px-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

/* Navigation alignment */
.navbar-nav.ms-auto {
    margin-left: auto !important;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

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

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h3 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content .lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: #555;
}

/* Comments */
.card-body .rounded-circle {
    object-fit: cover;
}

/* Sidebar */
.list-group-item {
    border-left: none;
    border-right: none;
    padding: 1rem;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item img {
    object-fit: cover;
}

/* Tags */
.badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
    margin: 0.2rem;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #dc3545 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .form-control {
        min-width: 200px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Custom button styles */
.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    transform: translateY(-2px);
}

/* Author bio styling */
.card.bg-light {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef;
}

/* Newsletter subscription */
.card .btn-danger {
    background: linear-gradient(45deg, #dc3545, #c82333);
    border: none;
    transition: all 0.3s ease;
}

.card .btn-danger:hover {
    background: linear-gradient(45deg, #c82333, #a71e2a);
    transform: translateY(-2px);
}

/* Related articles hover effect */
.list-group-item-action:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* Code mentor card styling */
.card.bg-light .btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card.bg-light .btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-2px);
}
