/*
Theme Name: Glitzra Blog - Avinya Style
Theme URI: https://glitzra.com
Author: Glitzra Team
Author URI: https://glitzra.com
Description: Clean, simple blog theme for Glitzra inspired by Avinya Infotech. Perfect for daily blogging with a minimal list layout.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: glitzra
Tags: blog, simple, clean, minimal, list-layout

This theme, like WordPress, is licensed under the GPL.
*/

/* ========================================
   Glitzra Blog - Avinya Style
   Simple & Clean List Layout
   ======================================== */

:root {
    --primary-color: #0066cc;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e5e5e5;
    --hover-bg: #f0f4f8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

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

/* Header */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
}

.site-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.site-logo:hover {
    color: var(--primary-color);
}

/* Navigation */
.main-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Page Header */
.page-header {
    background: var(--bg-light);
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Blog List - Avinya Style */
.blog-list {
    padding: 3rem 0;
}

.blog-posts {
    max-width: 900px;
    margin: 0 auto;
}

/* Single Blog Item - List Style */
.blog-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.blog-item:hover {
    background: var(--hover-bg);
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.blog-item:first-child {
    padding-top: 0;
}

/* Date Box - Left Side */
.blog-date {
    text-align: left;
    color: var(--text-gray);
    font-size: 0.9rem;
    padding-top: 0.3rem;
}

/* Content - Right Side */
.blog-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.blog-content h2 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.blog-content h2 a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

/* Featured Image - Optional */
.blog-featured-image {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.blog-item:hover .blog-featured-image img {
    transform: scale(1.02);
}

/* Pagination - Avinya Style */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0 2rem;
    font-size: 0.95rem;
}

.pagination a,
.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.8rem;
    background: var(--bg-white);
    color: var(--text-dark);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.pagination .current {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.pagination .dots {
    background: transparent;
    border: none;
}

/* Single Post Page */
.single-post {
    padding: 3rem 0;
}

.post-article {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.post-meta {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.post-meta span:not(:last-child)::after {
    content: '•';
    margin: 0 0.5rem;
    color: var(--border-color);
}

.post-meta a {
    color: var(--text-gray);
    text-decoration: none;
}

.post-meta a:hover {
    color: var(--primary-color);
}

/* Featured Image in Single Post */
.post-featured-image {
    margin-bottom: 2rem;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Post Content */
.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.entry-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.entry-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.entry-content a:hover {
    text-decoration: none;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    font-style: italic;
}

/* Footer */
.site-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-widget a:hover {
    color: var(--primary-color);
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* WordPress Alignment */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Comments */
.comments-area {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.comment-content p {
    margin-bottom: 0.5rem;
}

.comment-reply-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

.comment-form {
    margin-top: 2rem;
}

.comment-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.comment-form input[type="submit"] {
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.comment-form input[type="submit"]:hover {
    background: #0052a3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
    }
    
    .main-navigation ul li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-navigation ul li:last-child {
        border-bottom: none;
    }
    
    .main-navigation a {
        display: block;
        padding: 0.8rem 0;
    }
    
    .main-navigation.active ul {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .blog-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .blog-date {
        text-align: left;
    }
    
    .entry-title {
        font-size: 2rem;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}