/* ============================================
   CUSTOM STYLES
   ============================================ */

/* Fallback menu styling */
.site-nav > a {
    display: inline-block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.site-nav > a:hover {
    color: #00bfff;
}

/* WordPress menu styling */
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.site-nav li {
    position: relative;
}

.site-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.site-nav a:hover {
    color: #00bfff;
}

/* Submenu styling */
.site-nav ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0d0d0d;
    flex-direction: column;
    gap: 0;
    min-width: 200px;
    padding: 10px 0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.site-nav li:hover > ul {
    opacity: 1;
    visibility: visible;
}

.site-nav ul ul li {
    padding: 0;
}

.site-nav ul ul a {
    display: block;
    padding: 10px 20px;
}

/* Archive header styling */
.archive-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #00bfff;
}

.archive-header h1 {
    margin-bottom: 10px;
}

.archive-description {
    color: #666;
    font-size: 18px;
}

/* Search form styling */
.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-form button {
    padding: 12px 30px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form button:hover {
    background-color: #0052a3;
}

/* Comments section */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    margin-bottom: 30px;
}

.comment {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.comment-body {
    display: flex;
    gap: 20px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.comment-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.comment-date {
    display: block;
    font-size: 12px;
    color: #999;
    font-weight: normal;
    margin-top: 5px;
}

.comment-content {
    flex: 1;
}

.comment-reply {
    margin-top: 10px;
}

.comment-reply a {
    color: #0066cc;
    font-weight: 600;
}

/* Comment form styling */
.comment-form {
    margin-top: 30px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.comment-form p {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

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

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #00bfff;
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

.comment-form button {
    background-color: #0066cc;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form button:hover {
    background-color: #0052a3;
}

/* Error 404 page */
.error-404 {
    text-align: center;
    padding: 60px 0;
}

.error-404 h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #d32f2f;
}

.error-404 p {
    font-size: 18px;
    margin-bottom: 40px;
}

.error-404 ul {
    list-style: none;
    margin: 40px 0;
    text-align: left;
    display: inline-block;
}

.error-404 ul li {
    margin-bottom: 10px;
}

.error-404 ul a {
    color: #0066cc;
    text-decoration: none;
}

.error-404 ul a:hover {
    text-decoration: underline;
}

/* No results page */
.no-results {
    text-align: center;
    padding: 60px 0;
}

.no-results h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.no-results p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-nav {
        flex-wrap: wrap;
    }

    .site-nav ul {
        gap: 15px;
    }

    .site-nav ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        background-color: transparent;
        box-shadow: none;
        padding-left: 20px;
        margin-top: 10px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form input[type="search"] {
        width: 100%;
    }

    .comment-body {
        flex-direction: column;
    }

    .error-404 h1 {
        font-size: 2rem;
    }
}
