/* frontend-style.css - Frontend Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background: #f8f8f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #1a2947;
    color: white;
}

.header-top {
    padding: 20px 0;
    text-align: center;
}

.site-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.site-subtitle {
    color: #ff6b35;
    font-size: 12px;
    letter-spacing: 3px;
}

.main-nav {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 0;
}

.main-nav .container {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #ff6b35;
}

/* Main Container */
.main-container {
    padding: 40px 0;
    min-height: calc(100vh - 300px);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Blog Posts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.post-image {
    display: block;
    position: relative;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.post-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #ff6b35;
    color: white;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: bold;
}

.post-content {
    padding: 25px;
}

.post-title {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #ff6b35;
}

.post-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: #1a2947;
    font-weight: bold;
    font-size: 12px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.read-more:hover {
    color: #ff6b35;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.widget {
    background: white;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b35;
    color: #1a2947;
}

.search-box form {
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    font-size: 14px;
}

.search-box button {
    padding: 10px 15px;
    background: #ff6b35;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.recent-posts-list,
.comments-list,
.archive-list {
    list-style: none;
}

.recent-posts-list li,
.comments-list li,
.archive-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.recent-posts-list li:last-child,
.comments-list li:last-child,
.archive-list li:last-child {
    border-bottom: none;
}

.recent-posts-list a,
.comments-list a,
.archive-list a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.recent-posts-list a:hover,
.comments-list a:hover,
.archive-list a:hover {
    color: #ff6b35;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    padding: 10px 15px;
    background: white;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.page-link:hover,
.page-link.active {
    background: #1a2947;
    color: white;
    border-color: #1a2947;
}

.page-dots {
    padding: 10px 5px;
    color: #999;
}

/* Footer */
.site-footer {
    background: #1a2947;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.site-footer p {
    font-size: 14px;
}

/* Single Post Page */
.post-header {
    background: white;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.post-meta span {
    margin-right: 20px;
}

.post-single-title {
    font-size: 36px;
    color: #1a2947;
    margin-bottom: 20px;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 30px;
}

.post-body {
    background: white;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 16px;
    line-height: 1.8;
}

.post-body h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1a2947;
}

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

.post-body ul,
.post-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

/* Comments Section */
.comments-section {
    background: white;
    padding: 40px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.comments-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: #1a2947;
}

.comment {
    padding: 20px;
    background: #f8f8f8;
    margin-bottom: 15px;
    border-left: 3px solid #ff6b35;
}

.comment-author {
    font-weight: bold;
    color: #1a2947;
    margin-bottom: 5px;
}

.comment-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.comment-text {
    color: #666;
}

/* Comment Form */
.comment-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    font-size: 14px;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #1a2947;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    padding: 12px 30px;
    background: #ff6b35;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #e55a2a;
}

/* Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .main-nav .container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .sidebar {
        position: static;
    }
    
    .post-single-title {
        font-size: 28px;
    }
    
    .post-header,
    .post-body,
    .comments-section {
        padding: 20px;
    }
}
