/*
Theme Name: Unnail Blog Theme
Description: A custom WordPress theme matching the Unnail website design
Version: 1.0
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fdf7f7;
}

/* Header Styles */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e91e63;
    text-decoration: none;
}

.site-title:hover {
    color: #f7a7a7;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-navigation a {
    font-weight: 500;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #f7a7a7;
}

/* Main Content Area */
.site-main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Blog Posts */
.blog-posts {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(233, 30, 99, 0.1);
}

.post {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.post:last-child {
    border-bottom: none;
}

.post-header {
    margin-bottom: 20px;
}

.post-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 10px;
}

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

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

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

.post-meta a {
    color: #f7a7a7;
    text-decoration: none;
}

.post-meta a:hover {
    color: #f58d8d;
}

.post-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.post-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

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

.read-more {
    background-color: #f7a7a7;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #f58d8d;
    color: white;
    text-decoration: none;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.widget {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(247, 167, 167, 0.1);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f7a7a7;
    margin-bottom: 15px;
    border-bottom: 2px solid #f7a7a7;
    padding-bottom: 8px;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: #f7a7a7;
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 10px;
}

.search-field {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #f0f0f0;
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-field:focus {
    border-color: #f7a7a7;
}

.search-submit {
    background-color: #f7a7a7;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-submit:hover {
    background-color: #f58d8d;
}

/* Single Post Styles */
.single-post {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(233, 30, 99, 0.1);
    margin-bottom: 30px;
}

.single-post .post-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.single-post .post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4 {
    color: #f7a7a7;
    margin: 25px 0 15px 0;
}

.single-post .post-content blockquote {
    border-left: 4px solid #f7a7a7;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

/* Footer */
.site-footer {
    background-color: #f8f9fa;
    color: #6c757d;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    font-size: 0.9rem;
}

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

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 2px solid #f0f0f0;
    border-radius: 25px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background-color: #f7a7a7;
    border-color: #f7a7a7;
    color: white;
}

/* Comments Section */
.comments-area {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(247, 167, 167, 0.1);
    margin-top: 30px;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f7a7a7;
    margin-bottom: 20px;
}

.comment {
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.comment-content {
    line-height: 1.6;
}

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

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    margin-bottom: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #f7a7a7;
}

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

.comment-form .submit {
    background-color: #f7a7a7;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.comment-form .submit:hover {
    background-color: #f58d8d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .site-main {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 20px auto;
    }
    
    .blog-posts,
    .single-post {
        padding: 20px;
    }
    
    .post-title {
        font-size: 1.4rem;
    }
    
    .single-post .post-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.4rem;
    }
    
    .post-title {
        font-size: 1.2rem;
    }
    
    .single-post .post-title {
        font-size: 1.5rem;
    }
    
    .blog-posts,
    .single-post {
        padding: 15px;
    }
}