/* CoinDesk-Style CSS for Protocol Pulse */

/* Global Styles */
body {
    background-color: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Header Styling */
header {
    background-color: #000;
    border-bottom: 1px solid #333;
}

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

.navbar-nav .nav-link {
    color: #fff;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #00aaff;
}

/* Main Content */
.container {
    max-width: 1200px;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-img-top {
    border-radius: 8px 8px 0 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #333;
}

.lead {
    font-size: 1.1rem;
    color: #666;
}

/* Button Styling */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    background-color: #f8f9fa;
    color: #333;
}

/* Search Form */
.form-control {
    border-radius: 6px;
    border: 1px solid #ddd;
}

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

/* Footer Styling */
footer {
    background-color: #000;
    border-top: 1px solid #333;
}

footer h5 {
    color: #f8f9fa;
    font-weight: 600;
}

footer p, footer li {
    color: #adb5bd;
}

footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

.article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-title {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Card title styling for article cards */
.card-title {
    color: #ffffff !important;
}

.card-title a {
    color: #ffffff !important;
    text-decoration: none;
}

.card-title a:hover {
    color: #dc2626 !important;
}

/* Featured card titles - white text for dark theme */
.featured-card .card-title {
    color: #ffffff !important;
}

.featured-card .card-title a {
    color: #ffffff !important;
}

.featured-card .card-title a:hover {
    color: #dc2626 !important;
}

/* Featured card hover state - ensure text is readable on dark background */
.featured-card:hover .card-title,
.featured-card:hover .card-title a {
    color: #ffffff !important;
}

.featured-card:hover .card-title a:hover {
    color: #dc2626 !important;
}

.featured-card:hover .card-text,
.featured-card:hover .text-muted {
    color: #e0e0e0 !important;
}

/* Advertisement Styling - 2025 Standards */
.ad-container {
    position: relative;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.ad-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ad-container a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.ad-label {
    background: #6c757d;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    position: relative;
}

.ad-label::before {
    content: "👑";
    margin-right: 0.25rem;
}

/* Sidebar Ad Styling */
.sidebar-ad {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    margin-bottom: 1rem;
}

.sidebar-ad:hover {
    transform: translateY(-2px);
}

.sidebar-ad img {
    transition: transform 0.2s ease;
    border-radius: 6px;
}

.sidebar-ad:hover img {
    transform: scale(1.02);
}

.sidebar-ad a {
    text-decoration: none;
    color: inherit;
}

.sidebar-ad small {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

/* Responsive Advertisement Display */
@media (max-width: 991.98px) {
    .sidebar-ad {
        display: none;
    }
}

@media (max-width: 768px) {
    .ad-container {
        margin: 1rem 0;
    }
}

/* Hero Carousel Styling */
.hero-carousel {
    margin-bottom: 2rem;
}

.hero-carousel img {
    height: 400px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 1.5rem;
    left: 10%;
    right: 10%;
    bottom: 20px;
}

.carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.carousel-caption p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Article Grid Styling */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 1rem;
}

.article-card {
    background: #222;
    padding: 10px;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.article-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1rem;
    margin-bottom: 0.5rem;
}

.article-card h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.article-card h3 a:hover {
    color: #007bff;
}

.article-card p {
    margin: 1rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Sidebar Styling */
.sidebar {
    background: #111;
    padding: 15px;
    border-left: 1px solid #333;
}

.sidebar h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

/* Market Widget */
.market-widget {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.crypto-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.crypto-price:last-child {
    border-bottom: none;
}

.crypto-name {
    font-weight: 600;
    color: #333;
}

.crypto-price-value {
    font-weight: 700;
    color: #333;
}

.crypto-change {
    font-size: 0.9rem;
    font-weight: 600;
}

.crypto-change.positive {
    color: #28a745;
}

.crypto-change.negative {
    color: #dc3545;
}

/* Featured Content */
.featured-content {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.featured-item {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.featured-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.featured-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
}

.featured-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.featured-item h4 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.featured-item h4 a:hover {
    color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .carousel-caption {
        left: 5%;
        right: 5%;
    }
    
    .carousel-caption h5 {
        font-size: 1.2rem;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
}

.screenshot { 
    max-width: 100%; 
    height: auto; 
    border: 1px solid #333; 
    margin-bottom: 20px; 
}