﻿/* ============================================
   FOROS (CLASSIC CAR FORUMS) - MODERN STYLES
   Community forums for classic car enthusiasts
   ============================================ */

:root {
    --primary-color: #2061a8;
    --primary-hover: #1a4f8a;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --gold-color: #ffc107;
    --text-color: #333;
    --text-muted: #666;
    --border-radius: 12px;
    --transition-speed: 0.3s;
    --box-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --box-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --box-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

/* ============================================
   LAYOUT
   ============================================ */
.foros-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

.foros-main {
    min-width: 0;
}

.foros-sidebar {
    position: sticky;
    top: var(--spacing-md);
    height: fit-content;
}

/* ============================================
   HEADER
   ============================================ */
.hero-title {
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
    text-align:center;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    transition: width var(--transition-speed) ease;
}

.hero-title:hover::after {
    width: 100%;
}

.hero-subtitle {
    padding-bottom: 0.75rem;
    text-align:center;
}

.h1link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed) ease;
}

.h1link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.foros-header {
    background: white;
    padding-bottom: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--primary-color);
}

.foros-title {
    margin: 0 0 var(--spacing-sm) 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.foros-title-link {
    color: #333;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.foros-title-link:hover {
    color: var(--primary-color);
}

.foros-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1rem;
    color: #555;
}

.foros-meta-separator {
    color: #ccc;
    font-weight: 300;
}

.foros-location {
    color: #666;
}

.foros-location strong {
    color: #333;
    font-weight: 600;
}

/* ============================================
   TOPIC LIST
   ============================================ */
.foros-topic-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.foros-topic-card {
    background: white;
    padding: var(--spacing-md) 0px;
    margin-bottom: var(--spacing-sm);
    border-bottom: 1px solid #e0e0e0;
    transition: all var(--transition-speed) ease;
}

.foros-topic-card:hover {
    border-bottom-color: var(--primary-color);
    transform: translateX(5px);
    cursor:pointer;
}

.foros-topic-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 var(--spacing-xs) 0;
}

.foros-topic-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.foros-topic-title a:hover {
    color: var(--primary-color);
}

.foros-topic-excerpt {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.foros-topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.foros-topic-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.foros-topic-stat strong {
    color: var(--text-color);
}

.foros-votes-positive {
    color: var(--success-color);
    font-weight: 700;
}

.foros-votes-negative {
    color: var(--danger-color);
    font-weight: 700;
}

/* ============================================
   PAGINATION
   ============================================ */
.foros-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
    margin: var(--spacing-lg) 0;
    flex-wrap: wrap;
}

.foros-pagination a,
.foros-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--spacing-sm);
    background: white;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--box-shadow-sm);
}

.foros-pagination a:hover {
    background: var(--primary-color);
    color: white;
}

.foros-pagination .active {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   DISCLAIMER
   ============================================ */
.foros-disclaimer {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    color: #856404;
    line-height: 1.6;
    border-left: 4px solid var(--gold-color);
}

.foros-disclaimer strong {
    color: #664d03;
}

/* ============================================
   SIDEBAR
   ============================================ */
.foros-sidebar-box {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.foros-sidebar-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-speed) ease;
}

.foros-sidebar-header:hover {
    background: var(--primary-hover);
}

.foros-sidebar-header::after {
    content: '▼';
    font-size: 0.75rem;
    transition: transform var(--transition-speed) ease;
}

.foros-sidebar-header.collapsed::after {
    transform: rotate(-90deg);
}

.foros-sidebar-content {
    padding: var(--spacing-xs);
    display: block;
}

.foros-sidebar-content.hidden {
    display: none;
}

/* ============================================
   SOCIAL SHARE
   ============================================ */
.share-box {
    background: white;
    padding: var(--spacing-md) 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
    margin-bottom: var(--spacing-md);
}

.share-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-speed) ease;
}

.share-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.st-inline-share-buttons,
.st-inline-share-buttons > div {
    display: flex !important;
    flex-wrap: wrap !important;
}

.st-btn {
    margin: 4px !important;
}

#st-1 .st-total.st-hidden {
    display: none !important;
}

/* ============================================
   SEARCH SIDEBAR
   ============================================ */
.search-container {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
    margin-bottom: var(--spacing-md);
}

.search-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-speed) ease;
}

.search-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.foros-search-input {
    width: 100%;
    padding: 0.625rem;
    border: 2px solid #ddd;
    border-radius: calc(var(--border-radius) - 2px);
    font-size: 0.9375rem;
    transition: all var(--transition-speed) ease;
}

.foros-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.foros-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: calc(var(--border-radius) - 2px);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    margin-top: var(--spacing-sm);
    box-shadow: var(--box-shadow-sm);
}

.foros-btn:hover {
    background: var(--primary-hover);
}

.ad-sidebar {
    margin-top: var(--spacing-md);
}

/* ============================================
   PUBLISH FORM
   ============================================ */
.foros-form-group {
    margin-bottom: var(--spacing-sm);
}

.foros-form-input,
.foros-form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-speed) ease;
}

.foros-form-input:focus,
.foros-form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(32, 97, 168, 0.1);
}

.foros-form-textarea {
    resize: vertical;
    min-height: 120px;
}

.foros-file-upload {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: var(--spacing-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.foros-file-upload:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
}

.foros-file-upload input[type="file"] {
    display: none;
}

.foros-file-upload-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.foros-file-preview {
    margin-top: var(--spacing-xs);
    font-size: 0.8125rem;
    color: var(--success-color);
}

/* ============================================
   VER PAGE - TOPIC DETAIL
   ============================================ */
.foros-topic-detail {
    background: white;
    margin-bottom: var(--spacing-lg);
}

.foros-topic-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

.foros-topic-author {
    font-size: 0.875rem;
    color: var(--text-muted);
    padding-top: var(--spacing-md);
    border-top: 1px solid #eee;
}

.foros-topic-author a {
    color: var(--primary-color);
    text-decoration: none;
}

.foros-topic-author a:hover {
    text-decoration: underline;
}

.foros-topic-image {
    margin-top: var(--spacing-md);
    text-align: center;
}

.foros-topic-image img {
    max-width: 100%;
    max-height: 550px;
    border-radius: 8px;
    box-shadow: var(--box-shadow-sm);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.foros-topic-image img:hover {
    box-shadow: var(--box-shadow-lg);
}

/* ============================================
   REPLIES
   ============================================ */
.foros-replies {
    margin-top: var(--spacing-lg);
}

.foros-replies-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--primary-color);
}

.foros-reply-card {
    background: white;
    padding: var(--spacing-md) 0px;
    margin-bottom: var(--spacing-sm);
    border-bottom: 1px solid #e0e0e0;
    transition: all var(--transition-speed) ease;
}

.foros-reply-card:hover {
    border-bottom-color: var(--primary-color);
    transform: translateX(5px);
}

.foros-reply-content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
}

.foros-reply-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.foros-reply-meta a {
    color: var(--primary-color);
    text-decoration: none;
}

.foros-reply-meta a:hover {
    text-decoration: underline;
}

.foros-reply-image {
    margin-top: var(--spacing-sm);
}

.foros-reply-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    cursor: pointer;
}

/* ============================================
   MODAL
   ============================================ */
.foros-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
}

.foros-modal-overlay.show {
    display: flex;
}

.foros-modal-content {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: var(--box-shadow-lg);
}

.foros-modal-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.foros-modal-icon.success {
    color: var(--success-color);
}

.foros-modal-icon.error {
    color: var(--danger-color);
}

.foros-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.foros-modal-text {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

/* ============================================
   FB COMMENTS
   ============================================ */
.foros-fb-comments {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.foros-fb-comments-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   SHARE
   ============================================ */
.foros-share-container {
    margin-bottom: var(--spacing-md);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .foros-layout {
        grid-template-columns: 1fr;
    }

    .foros-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .foros-layout {
        padding: var(--spacing-sm);
    }

    .foros-header {
        padding: var(--spacing-md);
    }

    .foros-title {
        font-size: 1.25rem;
    }

    .foros-topic-meta {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .foros-pagination a,
    .foros-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.foros-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
}

.foros-lightbox.active {
    display: flex;
}

.foros-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
}

.foros-lightbox-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}
