/**
 * Components CSS
 * Reusable UI components
 *
 * @package Flavor_Crypto
 */

/* ==========================================================================
   News Cards
   ========================================================================== */

/* Card Base */
.fc-card {
    background-color: var(--fc-bg-primary);
    border-radius: var(--fc-radius-lg);
    overflow: hidden;
    transition: transform var(--fc-transition-normal), box-shadow var(--fc-transition-normal);
}

.fc-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--fc-shadow-lg);
}

/* Card - News List Item (Left Column Style) */
.fc-card-list {
    display: flex;
    flex-direction: column;
    gap: var(--fc-spacing-xs);
    padding: var(--fc-spacing-md) 0;
    border-bottom: 1px solid var(--fc-border-light);
}

.fc-card-list:last-child {
    border-bottom: none;
}

.fc-card-list__meta {
    display: flex;
    align-items: center;
    gap: var(--fc-spacing-sm);
    font-size: var(--fc-font-size-xs);
}

.fc-card-list__time {
    color: var(--fc-text-muted);
}

.fc-card-list__title {
    font-size: var(--fc-font-size-base);
    font-weight: 600;
    line-height: var(--fc-line-height-tight);
    margin: 0;
}

.fc-card-list__title a {
    color: var(--fc-text-primary);
    text-decoration: none;
    transition: color var(--fc-transition-fast);
}

.fc-card-list__title a:hover {
    color: var(--fc-accent-blue);
}

/* Card - Featured Large (Spotlight Style) */
.fc-card-featured {
    position: relative;
    border-radius: var(--fc-radius-lg);
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.fc-card-featured__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.fc-card-featured__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    z-index: 2;
}

.fc-card-featured__content {
    position: relative;
    z-index: 3;
    padding: var(--fc-spacing-xl);
    color: var(--fc-text-inverse);
}

.fc-card-featured__badge {
    position: absolute;
    top: var(--fc-spacing-lg);
    right: var(--fc-spacing-lg);
    z-index: 3;
}

.fc-card-featured__title {
    font-size: var(--fc-font-size-2xl);
    font-weight: 700;
    line-height: var(--fc-line-height-tight);
    margin: 0 0 var(--fc-spacing-sm);
    color: var(--fc-text-inverse);
}

.fc-card-featured__title a {
    color: inherit;
    text-decoration: none;
}

.fc-card-featured__title a:hover {
    text-decoration: underline;
}

.fc-card-featured__excerpt {
    font-size: var(--fc-font-size-base);
    line-height: var(--fc-line-height-normal);
    margin: 0 0 var(--fc-spacing-md);
    opacity: 0.9;
}

.fc-card-featured__meta {
    display: flex;
    align-items: center;
    gap: var(--fc-spacing-sm);
    font-size: var(--fc-font-size-sm);
    opacity: 0.8;
}

/* Card - Horizontal (Medium with Image) */
.fc-card-horizontal {
    display: flex;
    gap: var(--fc-spacing-md);
    padding: var(--fc-spacing-md) 0;
    border-bottom: 1px solid var(--fc-border-light);
}

.fc-card-horizontal:last-child {
    border-bottom: none;
}

.fc-card-horizontal__image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: var(--fc-radius-md);
    overflow: hidden;
}

.fc-card-horizontal__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fc-card-horizontal__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fc-card-horizontal__title {
    font-size: var(--fc-font-size-base);
    font-weight: 600;
    line-height: var(--fc-line-height-tight);
    margin: 0 0 var(--fc-spacing-xs);
}

.fc-card-horizontal__title a {
    color: var(--fc-text-primary);
    text-decoration: none;
}

.fc-card-horizontal__title a:hover {
    color: var(--fc-accent-blue);
}

.fc-card-horizontal__meta {
    display: flex;
    align-items: center;
    gap: var(--fc-spacing-sm);
    font-size: var(--fc-font-size-xs);
    color: var(--fc-text-secondary);
}

/* Card - Vertical (Deep Dives Style) */
.fc-card-vertical {
    position: relative;
    background: var(--fc-bg-primary);
    border-radius: var(--fc-radius-lg);
    overflow: hidden;
    box-shadow: var(--fc-shadow-card);
}

.fc-card-vertical__image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.fc-card-vertical__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--fc-transition-normal);
}

.fc-card-vertical:hover .fc-card-vertical__image img {
    transform: scale(1.05);
}

.fc-card-vertical__badge {
    position: absolute;
    top: var(--fc-spacing-sm);
    right: var(--fc-spacing-sm);
}

.fc-card-vertical__content {
    padding: var(--fc-spacing-md);
}

.fc-card-vertical__title {
    font-size: var(--fc-font-size-base);
    font-weight: 600;
    line-height: var(--fc-line-height-tight);
    margin: 0 0 var(--fc-spacing-sm);
}

.fc-card-vertical__title a {
    color: var(--fc-text-primary);
    text-decoration: none;
}

.fc-card-vertical__title a:hover {
    color: var(--fc-accent-blue);
}

.fc-card-vertical__author {
    font-size: var(--fc-font-size-xs);
    color: var(--fc-text-secondary);
}

/* Card - Grid (Archive Style) */
.fc-card-grid {
    background: var(--fc-bg-primary);
    border-radius: var(--fc-radius-lg);
    overflow: hidden;
    box-shadow: var(--fc-shadow-card);
    transition: transform var(--fc-transition-normal), box-shadow var(--fc-transition-normal);
}

.fc-card-grid:hover {
    transform: translateY(-4px);
    box-shadow: var(--fc-shadow-lg);
}

.fc-card-grid__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.fc-card-grid__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fc-card-grid__badge {
    position: absolute;
    bottom: var(--fc-spacing-sm);
    left: var(--fc-spacing-sm);
}

.fc-card-grid__content {
    padding: var(--fc-spacing-lg);
}

.fc-card-grid__title {
    font-size: var(--fc-font-size-lg);
    font-weight: 700;
    line-height: var(--fc-line-height-tight);
    margin: 0 0 var(--fc-spacing-sm);
}

.fc-card-grid__title a {
    color: var(--fc-text-primary);
    text-decoration: none;
}

.fc-card-grid__title a:hover {
    color: var(--fc-accent-blue);
}

.fc-card-grid__excerpt {
    font-size: var(--fc-font-size-sm);
    color: var(--fc-text-secondary);
    line-height: var(--fc-line-height-normal);
    margin: 0 0 var(--fc-spacing-md);
}

.fc-card-grid__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--fc-font-size-xs);
    color: var(--fc-text-muted);
}

.fc-card-grid__author {
    display: flex;
    align-items: center;
    gap: var(--fc-spacing-xs);
}

.fc-card-grid__author-avatar {
    width: 24px;
    height: 24px;
    border-radius: var(--fc-radius-full);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.fc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--fc-spacing-lg);
    padding-bottom: var(--fc-spacing-sm);
    border-bottom: 2px solid var(--fc-border-color);
}

.fc-section-title {
    display: flex;
    align-items: center;
    gap: var(--fc-spacing-sm);
    font-size: var(--fc-font-size-xl);
    font-weight: 700;
    margin: 0;
}

.fc-section-title__indicator {
    width: 10px;
    height: 10px;
    background-color: var(--fc-accent-red);
    border-radius: var(--fc-radius-full);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.fc-section-link {
    font-size: var(--fc-font-size-sm);
    font-weight: 600;
    color: var(--fc-accent-blue);
    text-decoration: none;
}

.fc-section-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Author Box
   ========================================================================== */

.fc-author-box {
    display: flex;
    gap: var(--fc-spacing-lg);
    padding: var(--fc-spacing-xl);
    background-color: var(--fc-bg-secondary);
    border-radius: var(--fc-radius-lg);
    margin: var(--fc-spacing-xl) 0;
}

.fc-author-box__avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--fc-radius-full);
    overflow: hidden;
}

.fc-author-box__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fc-author-box__content {
    flex: 1;
}

.fc-author-box__name {
    font-size: var(--fc-font-size-lg);
    font-weight: 700;
    margin: 0 0 var(--fc-spacing-xs);
}

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

.fc-author-box__name a:hover {
    color: var(--fc-accent-blue);
}

.fc-author-box__title {
    font-size: var(--fc-font-size-sm);
    color: var(--fc-text-secondary);
    margin: 0 0 var(--fc-spacing-sm);
}

.fc-author-box__bio {
    font-size: var(--fc-font-size-sm);
    color: var(--fc-text-secondary);
    line-height: var(--fc-line-height-relaxed);
    margin: 0 0 var(--fc-spacing-md);
}

.fc-author-box__social {
    display: flex;
    gap: var(--fc-spacing-sm);
}

.fc-author-box__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--fc-bg-tertiary);
    border-radius: var(--fc-radius-md);
    color: var(--fc-text-secondary);
    transition: all var(--fc-transition-fast);
}

.fc-author-box__social a:hover {
    background-color: var(--fc-accent-blue);
    color: var(--fc-text-inverse);
}

/* ==========================================================================
   Share Buttons
   ========================================================================== */

.fc-share {
    display: flex;
    align-items: center;
    gap: var(--fc-spacing-sm);
}

.fc-share__label {
    font-size: var(--fc-font-size-sm);
    font-weight: 600;
    color: var(--fc-text-secondary);
}

.fc-share__buttons {
    display: flex;
    gap: var(--fc-spacing-xs);
}

.fc-share__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--fc-radius-md);
    color: var(--fc-text-inverse);
    transition: transform var(--fc-transition-fast);
}

.fc-share__btn:hover {
    transform: scale(1.1);
    color: var(--fc-text-inverse);
}

.fc-share__btn--twitter { background-color: #1DA1F2; }
.fc-share__btn--facebook { background-color: #1877F2; }
.fc-share__btn--linkedin { background-color: #0A66C2; }
.fc-share__btn--telegram { background-color: #0088CC; }
.fc-share__btn--reddit { background-color: #FF4500; }

/* ==========================================================================
   Crypto Price Item
   ========================================================================== */

.fc-price-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--fc-spacing-md);
    background-color: var(--fc-bg-secondary);
    border-radius: var(--fc-radius-md);
    margin-bottom: var(--fc-spacing-sm);
}

.fc-price-item__info {
    display: flex;
    align-items: center;
    gap: var(--fc-spacing-sm);
}

.fc-price-item__icon {
    width: 32px;
    height: 32px;
    border-radius: var(--fc-radius-full);
}

.fc-price-item__name {
    font-weight: 600;
}

.fc-price-item__symbol {
    font-size: var(--fc-font-size-xs);
    color: var(--fc-text-muted);
    text-transform: uppercase;
}

.fc-price-item__value {
    text-align: right;
}

.fc-price-item__price {
    font-weight: 600;
    font-family: var(--fc-font-mono);
}

.fc-price-item__change {
    font-size: var(--fc-font-size-sm);
    font-family: var(--fc-font-mono);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.fc-pagination {
    display: flex;
    justify-content: center;
    margin: var(--fc-spacing-2xl) 0;
}

.fc-pagination-list {
    display: flex;
    align-items: center;
    gap: var(--fc-spacing-xs);
    list-style: none;
    margin: 0;
    padding: 0;
}

.fc-pagination-item a,
.fc-pagination-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--fc-spacing-sm);
    font-size: var(--fc-font-size-sm);
    font-weight: 500;
    color: var(--fc-text-primary);
    background-color: var(--fc-bg-secondary);
    border-radius: var(--fc-radius-md);
    text-decoration: none;
    transition: all var(--fc-transition-fast);
}

.fc-pagination-item a:hover {
    background-color: var(--fc-accent-blue);
    color: var(--fc-text-inverse);
}

.fc-pagination-item .current {
    background-color: var(--fc-accent-blue);
    color: var(--fc-text-inverse);
}

/* ==========================================================================
   Search Form
   ========================================================================== */

.fc-search-form {
    position: relative;
}

.fc-search-form__input {
    width: 100%;
    padding: var(--fc-spacing-sm) var(--fc-spacing-md);
    padding-right: 44px;
    font-size: var(--fc-font-size-base);
    background-color: var(--fc-bg-secondary);
    border: 1px solid var(--fc-border-color);
    border-radius: var(--fc-radius-md);
}

.fc-search-form__btn {
    position: absolute;
    top: 50%;
    right: var(--fc-spacing-sm);
    transform: translateY(-50%);
    padding: var(--fc-spacing-xs);
    background: none;
    border: none;
    color: var(--fc-text-secondary);
    cursor: pointer;
    transition: color var(--fc-transition-fast);
}

.fc-search-form__btn:hover {
    color: var(--fc-accent-blue);
}

/* ==========================================================================
   Tags
   ========================================================================== */

.fc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fc-spacing-xs);
}

.fc-tag {
    display: inline-block;
    padding: var(--fc-spacing-xs) var(--fc-spacing-sm);
    font-size: var(--fc-font-size-xs);
    color: var(--fc-text-secondary);
    background-color: var(--fc-bg-tertiary);
    border-radius: var(--fc-radius-sm);
    text-decoration: none;
    transition: all var(--fc-transition-fast);
}

.fc-tag:hover {
    background-color: var(--fc-accent-blue);
    color: var(--fc-text-inverse);
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.fc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--fc-spacing-xl);
}

.fc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--fc-border-color);
    border-top-color: var(--fc-accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fc-skeleton {
    background: linear-gradient(90deg, var(--fc-bg-secondary) 25%, var(--fc-bg-tertiary) 50%, var(--fc-bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--fc-radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   Alerts / Callouts
   ========================================================================== */

.fc-alert {
    padding: var(--fc-spacing-md) var(--fc-spacing-lg);
    border-radius: var(--fc-radius-md);
    margin-bottom: var(--fc-spacing-md);
}

.fc-alert--info {
    background-color: rgba(0, 123, 255, 0.1);
    border-left: 4px solid var(--fc-accent-blue);
    color: var(--fc-accent-blue);
}

.fc-alert--success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 4px solid var(--fc-accent-green);
    color: var(--fc-accent-green);
}

.fc-alert--warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #FFC107;
    color: #856404;
}

.fc-alert--danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid var(--fc-accent-red);
    color: var(--fc-accent-red);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .fc-card-featured {
        min-height: 300px;
    }

    .fc-card-featured__title {
        font-size: var(--fc-font-size-xl);
    }

    .fc-card-horizontal {
        flex-direction: column;
    }

    .fc-card-horizontal__image {
        width: 100%;
        height: 150px;
    }

    .fc-author-box {
        flex-direction: column;
        text-align: center;
    }

    .fc-author-box__social {
        justify-content: center;
    }
}

/* ==========================================================================
   Comments Section
   ========================================================================== */

.fc-comments {
    margin-top: var(--fc-spacing-2xl);
    padding-top: var(--fc-spacing-xl);
    border-top: 1px solid var(--fc-border-color);
}

.fc-comments__title {
    font-size: var(--fc-font-size-xl);
    font-weight: 700;
    margin-bottom: var(--fc-spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--fc-spacing-sm);
}

.fc-comments__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 var(--fc-spacing-sm);
    font-size: var(--fc-font-size-sm);
    font-weight: 600;
    background-color: var(--fc-accent-blue);
    color: var(--fc-text-inverse);
    border-radius: var(--fc-radius-full);
}

/* Comment List */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: var(--fc-spacing-lg);
}

.comment-list .comment:last-child {
    margin-bottom: 0;
}

/* Individual Comment */
.comment-body {
    position: relative;
    padding: var(--fc-spacing-lg);
    background-color: var(--fc-bg-secondary);
    border-radius: var(--fc-radius-lg);
    border-left: 3px solid var(--fc-accent-blue);
}

.comment-body::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 10px solid var(--fc-bg-secondary);
}

/* Comment Meta */
.comment-meta {
    display: flex;
    align-items: center;
    gap: var(--fc-spacing-md);
    margin-bottom: var(--fc-spacing-md);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: var(--fc-spacing-sm);
}

.comment-author .avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--fc-radius-full);
    object-fit: cover;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--fc-text-primary);
}

.comment-author .fn a {
    color: inherit;
    text-decoration: none;
}

.comment-author .fn a:hover {
    color: var(--fc-accent-blue);
}

.comment-author .says {
    display: none;
}

.comment-metadata {
    font-size: var(--fc-font-size-xs);
    color: var(--fc-text-muted);
}

.comment-metadata a {
    color: inherit;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: var(--fc-accent-blue);
}

/* Comment Content */
.comment-content {
    font-size: var(--fc-font-size-base);
    line-height: var(--fc-line-height-relaxed);
    color: var(--fc-text-secondary);
}

.comment-content p {
    margin-bottom: var(--fc-spacing-sm);
}

.comment-content p:last-child {
    margin-bottom: 0;
}

/* Reply Link */
.reply {
    margin-top: var(--fc-spacing-md);
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: var(--fc-spacing-xs);
    padding: var(--fc-spacing-xs) var(--fc-spacing-md);
    font-size: var(--fc-font-size-sm);
    font-weight: 600;
    color: var(--fc-accent-blue);
    background-color: transparent;
    border: 1px solid var(--fc-accent-blue);
    border-radius: var(--fc-radius-md);
    text-decoration: none;
    transition: all var(--fc-transition-fast);
}

.comment-reply-link:hover {
    background-color: var(--fc-accent-blue);
    color: var(--fc-text-inverse);
}

/* Nested Comments */
.comment-list .children {
    list-style: none;
    margin: var(--fc-spacing-lg) 0 0 var(--fc-spacing-xl);
    padding: 0;
    border-left: 2px solid var(--fc-border-light);
    padding-left: var(--fc-spacing-lg);
}

.comment-list .children .comment-body {
    border-left-color: var(--fc-accent-purple);
}

/* Pingbacks & Trackbacks */
.comment-list .pingback,
.comment-list .trackback {
    padding: var(--fc-spacing-md);
    background-color: var(--fc-bg-tertiary);
    border-radius: var(--fc-radius-md);
    font-size: var(--fc-font-size-sm);
}

/* Comment Form */
.comment-respond {
    margin-top: var(--fc-spacing-2xl);
    padding: var(--fc-spacing-xl);
    background-color: var(--fc-bg-secondary);
    border-radius: var(--fc-radius-lg);
}

.comment-reply-title {
    font-size: var(--fc-font-size-lg);
    font-weight: 700;
    margin-bottom: var(--fc-spacing-lg);
}

.comment-reply-title small {
    margin-left: var(--fc-spacing-md);
}

.comment-reply-title small a {
    font-size: var(--fc-font-size-sm);
    font-weight: 500;
    color: var(--fc-accent-red);
}

#commentform {
    display: flex;
    flex-direction: column;
    gap: var(--fc-spacing-md);
}

#commentform label {
    display: block;
    font-size: var(--fc-font-size-sm);
    font-weight: 600;
    color: var(--fc-text-secondary);
    margin-bottom: var(--fc-spacing-xs);
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
    width: 100%;
    padding: var(--fc-spacing-md);
    font-family: var(--fc-font-primary);
    font-size: var(--fc-font-size-base);
    color: var(--fc-text-primary);
    background-color: var(--fc-bg-primary);
    border: 1px solid var(--fc-border-color);
    border-radius: var(--fc-radius-md);
    transition: border-color var(--fc-transition-fast), box-shadow var(--fc-transition-fast);
}

#commentform input:focus,
#commentform textarea:focus {
    outline: none;
    border-color: var(--fc-accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

#commentform textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: var(--fc-spacing-sm);
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    accent-color: var(--fc-accent-blue);
}

.comment-form-cookies-consent label {
    margin-bottom: 0;
    font-weight: 400;
}

.form-submit {
    margin-top: var(--fc-spacing-md);
}

#submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--fc-spacing-md) var(--fc-spacing-xl);
    font-family: var(--fc-font-primary);
    font-size: var(--fc-font-size-base);
    font-weight: 600;
    color: var(--fc-text-inverse);
    background-color: var(--fc-accent-blue);
    border: none;
    border-radius: var(--fc-radius-md);
    cursor: pointer;
    transition: all var(--fc-transition-fast);
}

#submit:hover {
    background-color: var(--fc-accent-blue-hover);
    transform: translateY(-2px);
}

/* Logged in user */
.logged-in-as {
    font-size: var(--fc-font-size-sm);
    color: var(--fc-text-secondary);
    margin-bottom: var(--fc-spacing-md);
}

.logged-in-as a {
    color: var(--fc-accent-blue);
}

/* Comment notes */
.comment-notes {
    font-size: var(--fc-font-size-sm);
    color: var(--fc-text-muted);
    margin-bottom: var(--fc-spacing-md);
}

.required-field-message {
    color: var(--fc-accent-red);
}

/* No comments */
.no-comments {
    text-align: center;
    padding: var(--fc-spacing-xl);
    color: var(--fc-text-secondary);
    background-color: var(--fc-bg-secondary);
    border-radius: var(--fc-radius-lg);
}

/* Comments closed */
.comments-closed {
    text-align: center;
    padding: var(--fc-spacing-lg);
    color: var(--fc-text-muted);
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .comment-body {
        padding: var(--fc-spacing-md);
    }

    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-list .children {
        margin-left: var(--fc-spacing-md);
        padding-left: var(--fc-spacing-md);
    }

    .comment-respond {
        padding: var(--fc-spacing-lg);
    }
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */

.widget {
    padding: var(--fc-spacing-lg);
    background-color: var(--fc-bg-secondary);
    border-radius: var(--fc-radius-lg);
    margin-bottom: var(--fc-spacing-lg);
}

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

.widget-title,
.widget .widgettitle {
    font-family: var(--fc-font-heading);
    font-size: var(--fc-font-size-lg);
    font-weight: 700;
    color: var(--fc-text-primary);
    margin: 0 0 var(--fc-spacing-md);
    padding-bottom: var(--fc-spacing-sm);
    border-bottom: 2px solid var(--fc-accent-blue);
}

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

.widget ul li {
    padding: var(--fc-spacing-sm) 0;
    border-bottom: 1px solid var(--fc-border-light);
}

.widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget ul li:first-child {
    padding-top: 0;
}

.widget ul li a {
    color: var(--fc-text-secondary);
    text-decoration: none;
    transition: color var(--fc-transition-fast);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget ul li a:hover {
    color: var(--fc-accent-blue);
}

/* Post count in parentheses */
.widget ul li a .count,
.widget ul li span.post-count {
    font-size: var(--fc-font-size-xs);
    color: var(--fc-text-muted);
    background-color: var(--fc-bg-tertiary);
    padding: 2px 8px;
    border-radius: var(--fc-radius-sm);
}

/* Search Widget */
.widget_search .search-form {
    display: flex;
    gap: var(--fc-spacing-xs);
}

.widget_search .search-field {
    flex: 1;
    padding: var(--fc-spacing-sm) var(--fc-spacing-md);
    font-size: var(--fc-font-size-sm);
    border: 1px solid var(--fc-border-color);
    border-radius: var(--fc-radius-md);
    background-color: var(--fc-bg-primary);
    color: var(--fc-text-primary);
}

.widget_search .search-field:focus {
    outline: none;
    border-color: var(--fc-accent-blue);
}

.widget_search .search-submit {
    padding: var(--fc-spacing-sm) var(--fc-spacing-md);
    background-color: var(--fc-accent-blue);
    color: var(--fc-text-inverse);
    border: none;
    border-radius: var(--fc-radius-md);
    cursor: pointer;
    transition: background-color var(--fc-transition-fast);
}

.widget_search .search-submit:hover {
    background-color: var(--fc-accent-blue-hover);
}

/* Recent Posts Widget */
.widget_recent_entries ul li {
    display: flex;
    flex-direction: column;
    gap: var(--fc-spacing-xs);
}

.widget_recent_entries ul li a {
    font-weight: 500;
    line-height: var(--fc-line-height-tight);
}

.widget_recent_entries ul li .post-date {
    font-size: var(--fc-font-size-xs);
    color: var(--fc-text-muted);
}

/* Categories Widget */
.widget_categories ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Tag Cloud Widget */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fc-spacing-xs);
}

.widget_tag_cloud .tagcloud a {
    display: inline-block;
    padding: var(--fc-spacing-xs) var(--fc-spacing-sm);
    font-size: var(--fc-font-size-xs) !important;
    color: var(--fc-text-secondary);
    background-color: var(--fc-bg-tertiary);
    border-radius: var(--fc-radius-sm);
    text-decoration: none;
    transition: all var(--fc-transition-fast);
}

.widget_tag_cloud .tagcloud a:hover {
    background-color: var(--fc-accent-blue);
    color: var(--fc-text-inverse);
}

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

.widget_calendar caption {
    font-weight: 600;
    padding-bottom: var(--fc-spacing-sm);
}

.widget_calendar th,
.widget_calendar td {
    padding: var(--fc-spacing-xs);
    font-size: var(--fc-font-size-sm);
}

.widget_calendar th {
    color: var(--fc-text-muted);
    font-weight: 500;
}

.widget_calendar td a {
    display: block;
    padding: var(--fc-spacing-xs);
    background-color: var(--fc-accent-blue);
    color: var(--fc-text-inverse);
    border-radius: var(--fc-radius-sm);
    text-decoration: none;
}

.widget_calendar #today {
    background-color: var(--fc-bg-tertiary);
    border-radius: var(--fc-radius-sm);
}

/* Archives Widget */
.widget_archive select {
    width: 100%;
    padding: var(--fc-spacing-sm) var(--fc-spacing-md);
    font-size: var(--fc-font-size-sm);
    border: 1px solid var(--fc-border-color);
    border-radius: var(--fc-radius-md);
    background-color: var(--fc-bg-primary);
    color: var(--fc-text-primary);
}

/* Text Widget */
.widget_text .textwidget {
    font-size: var(--fc-font-size-sm);
    color: var(--fc-text-secondary);
    line-height: var(--fc-line-height-relaxed);
}

.widget_text .textwidget p:last-child {
    margin-bottom: 0;
}

/* Custom HTML Widget */
.widget_custom_html {
    overflow: hidden;
}

/* RSS Widget */
.widget_rss ul li {
    flex-direction: column;
    align-items: flex-start;
}

.widget_rss .rsswidget {
    font-weight: 600;
    margin-bottom: var(--fc-spacing-xs);
}

.widget_rss .rss-date {
    font-size: var(--fc-font-size-xs);
    color: var(--fc-text-muted);
}

.widget_rss .rssSummary {
    font-size: var(--fc-font-size-sm);
    color: var(--fc-text-secondary);
    margin-top: var(--fc-spacing-xs);
}
