/**
 * Additional Content Styles
 * Comments, Sidebar, Widgets
 * 
 * @package Logistik_Sicherheit
 * @version 1.1.0
 */

/* ============================================
   COMMENTS SECTION
   ============================================ */

.comments-area {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

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

.comment-item {
    margin-bottom: 2rem;
}

.comment-item .comment-item {
    margin-left: 3rem;
    margin-top: 2rem;
}

.comment-body {
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
}

.comment-author-avatar {
    flex-shrink: 0;
}

.comment-author-avatar img {
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.comment-content-wrap {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.comment-author-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.comment-author-name a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.comment-date a {
    color: var(--text-gray);
    text-decoration: none;
}

.comment-date a:hover {
    color: var(--accent-color);
}

.comment-awaiting-moderation {
    padding: 0.5rem 1rem;
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid var(--warning-color);
    color: var(--warning-color);
    font-style: italic;
    margin: 1rem 0;
}

.comment-text {
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
}

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

.comment-reply {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-reply-link,
.comment-reply .edit-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.comment-reply-link:hover,
.comment-reply .edit-link a:hover {
    background: var(--primary-color);
    color: #fff;
}

.no-comments {
    padding: 2rem;
    text-align: center;
    color: var(--text-gray);
    font-style: italic;
}

/* Comment Navigation */
.comment-navigation {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
}

.comment-navigation a {
    padding: 0.75rem 1.5rem;
    background: var(--dark-card);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.comment-navigation a:hover {
    background: var(--primary-color);
}

/* Comment Form */
.comment-respond {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--dark-card);
    border-radius: 12px;
    border: var(--border-glass);
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.comment-reply-title small a {
    margin-left: 1rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    text-decoration: none;
}

.comment-reply-title small a:hover {
    color: var(--primary-color);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: flex;
    flex-direction: column;
}

.comment-form label {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

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

.form-submit {
    margin: 0;
}

/* ============================================
   SIDEBAR & WIDGETS
   ============================================ */

.widget-area {
    padding: 2rem;
}

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

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Search Widget */
.widget_search .search-form {
    display: flex;
    gap: 0.5rem;
}

.widget_search input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
}

.widget_search button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.widget_search button:hover {
    background: var(--secondary-color);
}

/* Recent Posts Widget */
.widget_recent_entries ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_recent_entries li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.widget_recent_entries a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.widget_recent_entries .post-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
}

/* Categories & Archives Widget */
.widget_categories ul,
.widget_archive ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_categories li,
.widget_archive li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.widget_categories li:last-child,
.widget_archive li:last-child {
    border-bottom: none;
}

.widget_categories a,
.widget_archive a {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.widget_categories a:hover,
.widget_archive a:hover {
    color: var(--primary-color);
}

/* Tag Cloud Widget */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.widget_tag_cloud .tagcloud a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem !important;
    transition: all 0.3s ease;
}

.widget_tag_cloud .tagcloud a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Text Widget */
.widget_text p {
    line-height: 1.8;
    color: var(--text-light);
}

/* Calendar Widget */
.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
}

.widget_calendar th,
.widget_calendar td {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.widget_calendar th {
    background: var(--dark-card);
    color: var(--primary-color);
    font-weight: 600;
}

.widget_calendar td a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* RSS Widget */
.widget_rss ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_rss li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.widget_rss a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
}

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

.widget_rss .rss-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
}

/* ============================================
   CONTENT WITH SIDEBAR LAYOUT
   ============================================ */

.content-sidebar-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .content-sidebar-wrapper {
        grid-template-columns: 1fr;
    }
    
    .widget-area {
        padding: 1rem;
    }
    
    .comment-item .comment-item {
        margin-left: 1.5rem;
    }
}

@media (max-width: 576px) {
    .comment-item .comment-item {
        margin-left: 0;
    }
    
    .comment-body {
        flex-direction: column;
    }
    
    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}
