/**
 * Custom CSS for Avanza Custom Theme
 * Additional styles beyond the main style.css
 */

/* Custom Post Styles */
.post-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.post-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.entry-title {
    margin-bottom: 0.5rem;
}

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

.entry-title a:hover {
    color: var(--primary-color, #3498db);
}

.entry-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color, #3498db);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #2980b9;
}

/* Single Post Styles */
.single-post {
    max-width: 800px;
    margin: 0 auto;
}

.single-post .entry-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e1e8ed;
}

.single-post .entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

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

.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

/* Page Styles */
.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content .entry-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e1e8ed;
}

.page-content .entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Archive Styles */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.archive-description {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Search Styles */
.search-form {
    display: flex;
    margin: 2rem 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-form input[type="submit"] {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color, #3498db);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.search-form input[type="submit"]:hover {
    background-color: #2980b9;
}

/* 404 Page Styles */
.error-404 {
    text-align: center;
    padding: 3rem 0;
}

.error-404 .page-title {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.error-404-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}

.error-404-widgets .widget {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.error-404-widgets .widget-title {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.error-404-widgets ul {
    list-style: none;
    padding: 0;
}

.error-404-widgets li {
    margin-bottom: 0.5rem;
}

.error-404-widgets a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.error-404-widgets a:hover {
    color: #2980b9;
}

/* Comments Styles */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e8ed;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

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

.comment-list .comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.comment-author {
    font-weight: bold;
    color: #2c3e50;
}

.comment-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.comment-content {
    margin-top: 1rem;
}

.comment-reply-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-color, #3498db);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.comment-reply-link:hover {
    background-color: #2980b9;
}

/* Comment Form Styles */
.comment-form {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color, #3498db);
}

.comment-form input[type="submit"] {
    background-color: var(--primary-color, #3498db);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    background-color: #2980b9;
}

/* Sidebar Styles */
.sidebar {
    margin-top: 2rem;
}

.sidebar .widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.sidebar .widget-title {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e1e8ed;
}

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

.sidebar a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: #2980b9;
}

/* Footer Styles */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget {
    color: #bdc3c7;
}

.footer-widget-title {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

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

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

.footer-widget a:hover {
    color: #fff;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
    list-style: none;
    padding: 0;
}

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

.footer-menu a:hover {
    color: #fff;
}

.site-info {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #34495e;
}

.site-info p {
    margin-bottom: 0.5rem;
}

.powered-by {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-item {
        padding: 1rem;
    }
    
    .single-post .entry-title,
    .page-content .entry-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .error-404 .page-title {
        font-size: 3rem;
    }
    
    .error-404-widgets {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form input[type="search"] {
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }
    
    .search-form input[type="submit"] {
        border-radius: 4px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .comment-form,
    .comments-area {
        display: none;
    }
    
    .site-main {
        margin: 0;
        padding: 0;
    }
    
    .post-item {
        box-shadow: none;
        border: 1px solid #000;
    }
}
