/* Blog-specific styles */

/* Blog Hero Section */
.blog-hero {
    text-align: center;
    padding: 80px 20px 60px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(157, 78, 221, 0.1) 100%);
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.blog-hero::before {
    content: '📝';
    position: absolute;
    font-size: 150px;
    opacity: 0.05;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.blog-hero h1 {
    font-size: 3em;
    color: #ff6b00;
    text-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
    margin-bottom: 15px;
}

.blog-hero p {
    font-size: 1.3em;
    color: #9d4edd;
}

/* Blog Container Layout */
.blog-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(157, 78, 221, 0.1) 100%);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(255, 107, 0, 0.3);
    margin-bottom: 25px;
}

.sidebar-section h3 {
    color: #ff6b00;
    font-size: 1.3em;
    margin-bottom: 15px;
}

/* Category List */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    color: #ccc;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-list a:hover,
.category-list a.active {
    background: rgba(255, 107, 0, 0.2);
    color: #ff6b00;
}

/* Search Box */
.search-box {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 107, 0, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1em;
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
}

.search-box::placeholder {
    color: #999;
}

/* Recent Posts List */
.recent-posts {
    list-style: none;
}

.recent-posts li {
    margin-bottom: 12px;
}

.recent-posts a {
    color: #9d4edd;
    text-decoration: none;
    font-size: 0.95em;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.recent-posts a:hover {
    color: #ff6b00;
}

/* Main Blog Content */
.blog-main {
    min-height: 600px;
}

/* Blog Post Card */
.blog-post {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.05) 0%, rgba(157, 78, 221, 0.05) 100%);
    border: 2px solid rgba(255, 107, 0, 0.3);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 35px;
    transition: all 0.3s ease;
}

.blog-post:hover {
    border-color: #ff6b00;
    box-shadow: 0 10px 40px rgba(255, 107, 0, 0.2);
    transform: translateY(-5px);
}

/* Post Header */
.post-header h2 {
    color: #ff6b00;
    font-size: 2em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 107, 0, 0.2);
}

.post-meta span {
    color: #9d4edd;
    font-size: 0.95em;
}

.post-date, .post-author, .post-category, .post-location, .trail-stats {
    background: rgba(157, 78, 221, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
}

/* Difficulty Badges */
.difficulty {
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
}

.difficulty.easy {
    background: rgba(76, 175, 80, 0.3);
    color: #81c784;
    border: 2px solid #4caf50;
}

.difficulty.moderate {
    background: rgba(255, 193, 7, 0.3);
    color: #ffd54f;
    border: 2px solid #ffc107;
}

.difficulty.hard {
    background: rgba(255, 152, 0, 0.3);
    color: #ffb74d;
    border: 2px solid #ff9800;
}

.difficulty.expert {
    background: rgba(244, 67, 54, 0.3);
    color: #e57373;
    border: 2px solid #f44336;
}

/* Post Content */
.post-content {
    color: #ddd;
    line-height: 1.8;
    font-size: 1.05em;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h3 {
    color: #ff6b00;
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-content h4 {
    color: #9d4edd;
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.post-content ul, .post-content ol {
    margin: 15px 0 20px 25px;
    color: #ccc;
}

.post-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.post-content strong {
    color: #ff6b00;
}

/* Post Footer */
.post-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 107, 0, 0.2);
}

.toggle-comments {
    background: linear-gradient(135deg, #9d4edd, #7b2cbf);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
}

.toggle-comments:hover {
    background: linear-gradient(135deg, #7b2cbf, #5a189a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.5);
}

/* Comments Section */
.comments-section {
    margin-top: 25px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(157, 78, 221, 0.3);
}

.comments-section h4 {
    color: #9d4edd;
    font-size: 1.4em;
    margin-bottom: 20px;
}

/* Individual Comment */
.comment {
    background: rgba(157, 78, 221, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 3px solid #9d4edd;
}

.comment-author {
    color: #ff6b00;
    font-weight: 600;
    font-size: 1.05em;
    margin-bottom: 8px;
}

.comment-text {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 8px;
}

.comment-date {
    color: #999;
    font-size: 0.85em;
}

.no-comments {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Add Comment Form */
.add-comment {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(157, 78, 221, 0.2);
}

.add-comment textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(157, 78, 221, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: inherit;
    font-size: 1em;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
}

.add-comment textarea:focus {
    outline: none;
    border-color: #9d4edd;
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.3);
}

.add-comment textarea::placeholder {
    color: #999;
}

.add-comment button {
    margin-top: 12px;
    background: linear-gradient(135deg, #ff6b00, #ff8500);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.add-comment button:hover {
    background: linear-gradient(135deg, #ff8500, #ffaa00);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .sidebar-section {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.2em;
    }

    .blog-hero p {
        font-size: 1.1em;
    }

    .blog-container {
        padding: 0 15px;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .blog-post {
        padding: 25px 20px;
    }

    .post-header h2 {
        font-size: 1.6em;
    }

    .post-meta {
        flex-direction: column;
        gap: 10px;
    }

    .post-content {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 1.8em;
    }

    .blog-post {
        padding: 20px 15px;
    }

    .post-header h2 {
        font-size: 1.4em;
    }
}

/* Active Link Styles */
.nav-links a.active {
    background: rgba(255, 107, 0, 0.3);
    color: #ff6b00;
}

/* Print Styles */
@media print {
    .blog-sidebar,
    .blog-hero,
    nav,
    footer,
    .post-footer,
    .comments-section {
        display: none;
    }

    .blog-post {
        border: 1px solid #000;
        page-break-after: always;
    }
}
