/* BookYourTrips.online Premium Travel Forum CSS */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --gold-color: #d4af37;
    --gold-primary: #d4af37;
    --text-color: #333;
    --light-text: #666;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.forum-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo a {
    text-decoration: none;
    color: var(--white);
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo .highlight {
    color: var(--gold-color);
}

.logo .tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
    font-weight: 400;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 14px;
    width: 200px;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-box button {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.search-box button:hover {
    transform: scale(1.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff6b6b 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--gold-color);
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Main Content */
.forum-main {
    padding: 40px 0;
}

.forum-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* Categories Section */
.categories-section {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.categories-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 10px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold-color);
}

.category-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.category-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.category-card h4 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-card h4 a:hover {
    color: var(--accent-color);
}

.category-card p {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.category-stats {
    font-size: 12px;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Recent Discussions */
.recent-discussions {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.recent-discussions h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 10px;
}

.discussion-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.discussion-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 8px;
    transition: background 0.3s ease;
    border: 1px solid var(--border-color);
}

.discussion-item:hover {
    background: #f0f0f0;
    border-color: var(--gold-color);
}

.discussion-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--gold-color));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.discussion-content {
    flex: 1;
}

.discussion-content h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.discussion-content h4 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.discussion-content h4 a:hover {
    color: var(--accent-color);
}

.discussion-meta {
    font-size: 13px;
    color: var(--light-text);
}

.discussion-meta .user {
    color: var(--accent-color);
    font-weight: 500;
}

.discussion-meta a {
    color: var(--primary-color);
    text-decoration: none;
}

.discussion-meta a:hover {
    color: var(--accent-color);
}

.discussion-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--light-text);
}

.discussion-stats .replies,
.discussion-stats .views {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Sidebar */
.forum-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.sidebar-widget h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 10px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--light-gray);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.tag:hover {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.top-contributors {
    list-style: none;
}

.top-contributors li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.contributor-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

.contributor-name {
    flex: 1;
    font-weight: 500;
    color: var(--primary-color);
}

.contributor-posts {
    font-size: 12px;
    color: var(--light-text);
}

.forum-stats-list {
    list-style: none;
}

.forum-stats-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--light-text);
}

.forum-stats-list li:last-child {
    border-bottom: none;
}

.forum-stats-list strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
.forum-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--gold-color);
}

.footer-section p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--gold-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    opacity: 0.7;
}

/* Category Page Styles */
.category-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.category-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.category-header p {
    font-size: 16px;
    opacity: 0.9;
}

.category-breadcrumb {
    background: var(--light-gray);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.category-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.category-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.category-breadcrumb a:hover {
    color: var(--accent-color);
}

.category-breadcrumb span {
    color: var(--light-text);
}

/* Thread Page Styles */
.thread-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 40px 0;
}

.thread-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.thread-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.thread-meta {
    font-size: 14px;
    opacity: 0.9;
}

.thread-content {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin: 30px 0;
}

.thread-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.thread-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.thread-content ul,
.thread-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.thread-content li {
    margin-bottom: 10px;
}

.thread-content blockquote {
    background: var(--light-gray);
    border-left: 4px solid var(--accent-color);
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
}

.thread-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.thread-author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--gold-color));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.thread-author-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.thread-author-info p {
    font-size: 13px;
    color: var(--light-text);
    margin: 0;
}

.thread-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.thread-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.thread-actions .btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.thread-actions .btn-primary:hover {
    background: #d63d55;
}

.thread-actions .btn-secondary {
    background: var(--light-gray);
    color: var(--primary-color);
}

.thread-actions .btn-secondary:hover {
    background: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .forum-layout {
        grid-template-columns: 1fr;
    }

    .forum-sidebar {
        order: 2;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 24px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .discussion-item {
        flex-direction: column;
        text-align: center;
    }

    .discussion-stats {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 22px;
    }

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

    .main-nav a {
        font-size: 12px;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .categories-section,
    .recent-discussions {
        padding: 20px;
    }
}

/* Slideshow Styles */
.slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
}

.slideshow.hero-slideshow {
    height: 70vh;
}

.slideshow.thread-slideshow {
    height: 400px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Slideshow Overlay */
.slideshow.hero-slideshow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.7) 0%, rgba(22, 33, 62, 0.5) 100%);
    z-index: 1;
}

.slideshow.hero-slideshow .slideshow-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: var(--white);
    width: 90%;
    max-width: 800px;
}

.slideshow.hero-slideshow .slideshow-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slideshow.hero-slideshow .slideshow-content p {
    font-size: 18px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Thread Slideshow Title Bar */
.slideshow.thread-slideshow .slideshow-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    padding: 20px;
    z-index: 2;
}

.slideshow.thread-slideshow .slideshow-title h3 {
    font-size: 24px;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Slideshow Dots */
.slideshow-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slideshow-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.slideshow-dots .dot.active {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    transform: scale(1.2);
}

.slideshow-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive Slideshow */
@media (max-width: 768px) {
    .slideshow.hero-slideshow {
        height: 50vh;
    }

    .slideshow.hero-slideshow .slideshow-content h2 {
        font-size: 32px;
    }

    .slideshow.hero-slideshow .slideshow-content p {
        font-size: 16px;
    }

    .slideshow.thread-slideshow {
        height: 300px;
    }

    .slideshow.thread-slideshow .slideshow-title h3 {
        font-size: 20px;
    }
}
