/*
Theme Name: Φως & Ιστορίες
Theme URI: http://example.com/fos-istories
Author: Your Name
Author URI: http://example.com
Description: Custom theme "Φως & Ιστορίες" with warm beige tones and cozy candle design.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: fos-istories
*/

body {
    background-color: #FDF6EC;
    color: #4B2E19;
    font-family: 'Georgia', serif;
    margin: 0;
    padding: 0;
}

a {
    color: #B98456;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Image Styles */
.hero-image {
    position: relative;
    margin-bottom: 1rem;
}

.hero-image img.banner-image {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 1rem;
}

/* Carousel Styles */
.hero-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.carousel-slide {
    display: none;
    position: relative;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 10;
}

.carousel-prev,
.carousel-next {
    background-color: rgba(185, 132, 86, 0.8);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(185, 132, 86, 1);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-indicator.active {
    background-color: #B98456;
}

.carousel-indicator:hover {
    background-color: rgba(185, 132, 86, 0.7);
}

header h1 {
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-size: 2rem;
    color: #4B2E19;
    position: relative;
    text-align: center;
    margin-top: -4rem;
    margin-bottom: 3rem;
}

.content-area {
    display: flex;
    gap: 2rem;
}

.main-content {
    flex: 3;
}

.sidebar {
    flex: 1;
}

section.latest-articles h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.latest-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.article-card {
    background-color: #FFF7ED;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgb(0 0 0 / 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-card img {
    border-radius: 15px;
    margin-bottom: 0.8rem;
}

.article-card h3 {
    font-size: 1.2rem;
    margin: 0 0 0.3rem 0;
    font-weight: 700;
    color: #4B2E19;
}

.article-card p {
    font-size: 0.9rem;
    color: #6B4E2D;
    margin-bottom: 0.8rem;
    min-height: 40px;
}

.button-read-more {
    background-color: #B98456;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 7px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    align-self: start;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.button-read-more:hover {
    background-color: #9d7040;
}

.search-form {
    margin-bottom: 2rem;
}

.search-form input[type="search"] {
    width: 100%;
    border: 1px solid #DDB685;
    border-radius: 10px;
    background-color: #FDF6EC;
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
    color: #4B2E19;
}

.search-form input[type="search"]::placeholder {
    color: #B98456;
}

.categories-widget {
    margin-bottom: 2rem;
}

.categories-widget h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.categories-widget ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
}

.categories-widget li {
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.categories-widget li a {
    color: #4B2E19;
}

.categories-widget li a:hover {
    color: #B98456;
}

.sidebar-article {
    background-color: #FFF7ED;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgb(0 0 0 / 0.1);
    text-align: center;
}

.sidebar-article img {
    border-radius: 15px;
    margin-bottom: 0.8rem;
    max-width: 100%;
}

.sidebar-article h3 {
    font-size: 1.1rem;
    margin: 0 0 0.3rem 0;
    font-weight: 700;
    color: #4B2E19;
}

.sidebar-article p {
    font-size: 0.9rem;
    color: #6B4E2D;
    margin-bottom: 0.8rem;
}

.subscription-box {
    background-color: #F9EED8;
    border-radius: 15px;
    padding: 1.5rem 2rem;
    margin: 3rem 0;
    max-width: 100%;
}

.subscription-box h2 {
    font-weight: 700;
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
    color: #4B2E19;
}

.subscription-box p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #6B4E2D;
}

.subscription-box button {
    background-color: #B98456;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 7px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.subscription-box button:hover {
    background-color: #9d7040;
}

@media (max-width: 768px){
    .content-area {
        flex-direction: column;
    }
    .main-content, .sidebar {
        flex: 1 1 auto;
    }
    .latest-articles-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile carousel adjustments */
    .carousel-controls {
        padding: 0 0.5rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .carousel-indicators {
        bottom: 0.5rem;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
    
    /* Mobile single post adjustments */
    .single-post-container {
        padding: 1.5rem;
    }
    
    .single-post-title {
        font-size: 1.8rem;
    }
    
    /* Mobile comment adjustments */
    .comment-respond {
        padding: 1.5rem;
    }
    
    .comment {
        padding: 1.5rem;
    }
    
    .comment-form {
        grid-template-columns: 1fr;
    }
    
    .comment-form .comment-form-comment,
    .comment-form .comment-form-url,
    .comment-form .form-submit {
        grid-column: span 1;
    }
    
    .call-to-comment {
        padding: 1rem;
    }
    
    .call-to-comment p {
        font-size: 1rem;
    }
}

.main-navigation {
    margin: 1rem 0 2rem 0;
    text-align: center;
}

.primary-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 2.5rem;
    font-weight: 600;
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
}

.primary-menu li {
    display: inline;
}

.primary-menu li a {
    color: #4B2E19;
    text-decoration: none;
    padding: 0.2rem 0.3rem;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
}

.primary-menu li a:hover,
.primary-menu li.current-menu-item > a {
    color: #fff;
    background-color: #B98456;
}

.single-post-container {
    background-color: #FFF7ED;
    border-radius: 15px;
    padding: 2rem 2.5rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.single-post-thumbnail {
    margin-bottom: 1.5rem;
}

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

.single-post-title {
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: #4B2E19;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.single-post-meta {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #DDB685;
    color: #6B4E2D;
    font-size: 0.95rem;
}

.single-post-meta .post-date {
    margin-right: 1rem;
}

.single-post-meta .post-categories a {
    color: #B98456;
    text-decoration: none;
    margin-right: 0.5rem;
}

.single-post-meta .post-categories a:hover {
    text-decoration: underline;
}

.single-post-content {
    line-height: 1.7;
    font-size: 1.05rem;
    color: #4B2E19;
    margin-bottom: 2rem;
}

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

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

.single-post-content h2 {
    font-size: 1.8rem;
}

.single-post-content h3 {
    font-size: 1.5rem;
}

.single-post-content h4 {
    font-size: 1.3rem;
}

/* Style links inside content */
.single-post-content a {
    color: #B98456;
    text-decoration: underline;
}

.single-post-content a:hover {
    color: #9d7040;
}

/* Call to comment widget */
.call-to-comment {
    background: linear-gradient(135deg, #F9EED8 0%, #FFF7ED 100%);
    border: 2px solid #DDB685;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(185, 132, 86, 0.1);
}

.call-to-comment p {
    font-size: 1.1rem;
    color: #4B2E19;
    margin: 0;
    font-weight: 500;
}

/* Comments section wrapper */
.comments-section {
    margin-top: 3rem;
}

/* Comments styling */
.comments-area {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #DDB685;
}

.comments-title {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    color: #4B2E19;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.comments-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #B98456, #DDB685);
    border-radius: 2px;
}

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

.comment {
    background: linear-gradient(135deg, #FDF6EC 0%, #FFF7ED 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #F0E6D8;
    position: relative;
}

.comment::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 3rem;
    color: #B98456;
    font-family: Georgia, serif;
    background: #FDF6EC;
    padding: 0 10px;
}

.comment-author {
    font-weight: 700;
    color: #4B2E19;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-author::before {
    content: '👤';
    font-size: 1.2rem;
}

.comment-meta {
    font-size: 0.9rem;
    color: #6B4E2D;
    margin-bottom: 1rem;
    font-style: italic;
}

.comment-content {
    line-height: 1.7;
    color: #4B2E19;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #B98456;
}

.comment-reply-link {
    display: inline-block;
    background-color: #B98456;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    background-color: #9d7040;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(185, 132, 86, 0.3);
}

/* Comment form */
.comment-respond {
    background: linear-gradient(135deg, #F9EED8 0%, #FFF7ED 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 2.5rem;
    box-shadow: 0 8px 25px rgba(185, 132, 86, 0.15);
    border: 2px solid #DDB685;
}

.comment-reply-title {
    font-family: 'Georgia', serif;
    font-size: 1.6rem;
    color: #4B2E19;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.comment-reply-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #B98456, #DDB685);
    border-radius: 1px;
}

.comment-form {
    display: grid;
    gap: 1.5rem;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    font-weight: 600;
    color: #4B2E19;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    border: 2px solid #DDB685;
    border-radius: 12px;
    background-color: #FDF6EC;
    padding: 1rem;
    font-size: 1rem;
    color: #4B2E19;
    transition: all 0.3s ease;
    font-family: inherit;
}

.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: #B98456;
    box-shadow: 0 0 0 3px rgba(185, 132, 86, 0.1);
    background-color: #FFF7ED;
}

.comment-form textarea {
    width: 100%;
    min-height: 150px;
    border: 2px solid #DDB685;
    border-radius: 12px;
    background-color: #FDF6EC;
    padding: 1rem;
    font-size: 1rem;
    color: #4B2E19;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
}

.comment-form textarea::placeholder {
    color: #6B4E2D;
    opacity: 0.7;
}

/* Form layout improvements */
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .comment-form {
        grid-template-columns: 1fr 1fr;
    }
    
    .comment-form .comment-form-comment {
        grid-column: span 2;
    }
    
    .comment-form .comment-form-url {
        grid-column: span 2;
    }
}

.comment-form .form-submit {
    grid-column: span 2;
    text-align: center;
    margin-top: 1rem;
}

.comment-form input[type="submit"] {
    background: linear-gradient(135deg, #B98456 0%, #9d7040 100%);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(185, 132, 86, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #9d7040 0%, #8a6340 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(185, 132, 86, 0.4);
}

.comment-form input[type="submit"]:active {
    transform: translateY(0);
}

/* Checkbox styling */
.comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    grid-column: span 2;
}

.comment-form .comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: #B98456;
    transform: scale(1.2);
}

.comment-form .comment-form-cookies-consent label {
    margin-bottom: 0;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* No comments message */
.no-comments {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #F9EED8 0%, #FFF7ED 100%);
    border-radius: 15px;
    border: 2px dashed #DDB685;
    color: #6B4E2D;
    font-style: italic;
}

.no-comments::before {
    content: '💬';
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

/* Archive page styles */
.archive-title {
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: #4B2E19;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.archive-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #B98456, #DDB685);
    border-radius: 2px;
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    font-size: 0.9rem;
    color: #6B4E2D;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.article-content h3 {
    margin: 0 0 0.8rem 0;
    line-height: 1.3;
}

.article-content h3 a {
    color: #4B2E19;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: #B98456;
}

.article-content p {
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Pagination styles */
.pagination-wrapper {
    margin-top: 3rem;
    text-align: center;
}

.navigation.pagination {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-numbers {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    background-color: #FDF6EC;
    border: 2px solid #DDB685;
    border-radius: 8px;
    color: #4B2E19;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: #B98456;
    color: white;
    border-color: #B98456;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(185, 132, 86, 0.3);
}

.page-numbers.prev,
.page-numbers.next {
    font-weight: 700;
}

/* No posts message */
.no-posts {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #F9EED8 0%, #FFF7ED 100%);
    border-radius: 15px;
    border: 2px dashed #DDB685;
    color: #6B4E2D;
    font-style: italic;
}

.no-posts::before {
    content: '📝';
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

/* Nested comments */
.comment-list .children {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1rem;
}

.comment-list .children .comment {
    border-left: 3px solid #B98456;
    margin-left: 1rem;
}

.comment-list .children .comment::before {
    left: 10px;
}

/* Comment actions */
.comment-actions {
    margin-top: 1rem;
}

/* Loading states */
.comment-form input[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success message styling */
.comment-form .success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Error message styling */
.comment-form .error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.menu-wrapper {
    position: relative;
    text-align: left;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem 0;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none; /* hide desktop initially */
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1001;
    margin-right: 1rem;
}

.menu-toggle .hamburger,
.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
    content: '';
    display: block;
    background-color: #4B2E19;
    height: 3px;
    border-radius: 2px;
    position: absolute;
    width: 100%;
    transition: all 0.3s ease;
}

.menu-toggle .hamburger {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle .hamburger::before {
    top: -8px;
}

.menu-toggle .hamburger::after {
    bottom: -8px;
}

/* Toggle icon animation */
.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Primary menu desktop */
.primary-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 2.5rem;
    font-weight: 600;
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
}

.primary-menu li {
    display: inline;
}

.primary-menu li a {
    color: #4B2E19;
    text-decoration: none;
    padding: 0.2rem 0.3rem;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
}

.primary-menu li a:hover,
.primary-menu li.current-menu-item > a {
    color: #fff;
    background-color: #B98456;
}

/* Mobile styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: inline-block;
    }

    .primary-menu {
        display: none;
        position: absolute;
        top: 45px;
        left: 0;
        background-color: #FDF6EC;
        border-radius: 15px;
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
        flex-direction: column;
        width: 180px;
        padding: 1rem 0;
        z-index: 1000;
        text-align: left;
    }

    .primary-menu.active {
        display: flex;
    }

    .primary-menu li {
        display: block;
        padding: 0 1.5rem;
        margin-bottom: 0.8rem;
    }

    .primary-menu li:last-child {
        margin-bottom: 0;
    }

    .primary-menu li a {
        font-size: 1rem;
        display: block;
        padding: 0.4rem 0;
    }
}

