/* 
* Safiri by Citrus - Help Center Page Styles
* A modern, clean stylesheet for the Help Center page 
*/

/* ===== Base Styles ===== */
:root {
    /* Primary Brand Colors */
    --primary-color: #1A73E8;
    --secondary-color: #FFC107;
    --accent-color: #4CAF50;
    --neutral-color: #F5F5F5;
    
    /* Secondary Colors */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #FFFFFF;
    --border-color: #E0E0E0;
    --hover-color: #0D47A1;
    --shadow-color: rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --font-accent: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: #FFFFFF;
}

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

a:hover {
    color: var(--hover-color);
}

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

/* ===== Button Styles ===== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
    color: var(--text-light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* ===== Header Section ===== */
.site-header {
    padding: 20px 0;
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    flex: 0 0 auto;
}

.logo {
    height: 50px;
    width: auto;
}

.main-nav {
    flex: 1 1 auto;
    text-align: right;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-list li {
    margin-left: 30px;
}

.nav-list a {
    font-weight: 500;
    color: var(--text-primary);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    height: 3px;
    width: 25px;
    background-color: var(--text-primary);
    margin: 3px 0;
    border-radius: 3px;
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 80px 0 60px;
    background: linear-gradient(to bottom right, #f8f9fa, #e9ecef);
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.tagline {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

#help-search {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 50px 0 0 50px;
    font-size: 16px;
    outline: none;
}

.search-button {
    padding: 15px 25px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* ===== Category Navigation ===== */
.category-navigation {
    background-color: #FFFFFF;
    padding: 20px 0;
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 90px;
    z-index: 900;
}

.categories-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.category-tab {
    padding: 12px 20px;
    background-color: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    white-space: nowrap;
}

.category-tab:hover {
    color: var(--primary-color);
}

.category-tab.active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.category-tab i {
    font-size: 16px;
}

/* ===== Main Content Layout ===== */
.main-content {
    padding: 60px 0;
    background-color: var(--neutral-color);
}

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

/* ===== Sidebar Styles ===== */
.sidebar {
    position: sticky;
    top: 210px;
    height: fit-content;
}

.popular-articles,
.search-history,
.contact-support {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.sidebar h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.article-list,
.search-list {
    list-style: none;
}

.article-list li,
.search-list li {
    margin-bottom: 15px;
}

.article-link,
.search-term {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.3s ease;
}

.article-link:hover,
.search-term:hover {
    color: var(--primary-color);
}

.article-link i {
    color: var(--primary-color);
    font-size: 16px;
}

.contact-support p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ===== Help Category Styles ===== */
.help-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.help-category {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== Article Grid Styles ===== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background-color: var(--neutral-color);
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.article-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.article-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.article-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

.feature-article {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
}

/* ===== Video Grid Styles ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.video-card {
    background-color: var(--neutral-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(26, 115, 232, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.play-button:hover {
    background-color: rgba(26, 115, 232, 1);
}

.video-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 20px 10px;
    color: var(--text-primary);
}

.video-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 20px 20px;
}

/* ===== Contact Support Section ===== */
.contact-support-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.support-content {
    text-align: center;
}

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

.support-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.support-option {
    background-color: var(--neutral-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.option-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.support-option h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.support-option p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.live-chat-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ===== Explore Section ===== */
.explore-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.explore-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.explore-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.explore-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.explore-content .tagline {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

/* ===== Footer Section ===== */
.site-footer {
    background-color: #333333;
    color: var(--text-light);
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #CCCCCC;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    color: var(--text-primary);
}

.website-link {
    margin-top: 20px;
}

.website-link a {
    color: var(--secondary-color);
    font-weight: 500;
}

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

.copyright {
    font-size: 14px;
    color: #999999;
}

/* ===== Responsive Styles ===== */
@media screen and (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-bottom: 40px;
    }
    
    .popular-articles, .search-history, .contact-support {
        margin-bottom: 20px;
    }
    
    .feature-article {
        grid-column: span 1;
    }
    
    .category-tab {
        font-size: 12px;
        padding: 10px 15px;
    }
}

@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .tagline {
        font-size: 18px;
    }
    
    .nav-list {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .categories-wrapper {
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .article-grid, .video-grid {
        grid-template-columns: 1fr;
    }
    
    .support-content h2 {
        font-size: 28px;
    }
    
    .support-content p {
        font-size: 16px;
    }
    
    .explore-content h2 {
        font-size: 28px;
    }
    
    .explore-content p {
        font-size: 16px;
    }
    
    .explore-content .tagline {
        font-size: 20px;
    }
}

@media screen and (max-width: 576px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .category-tab {
        font-size: 11px;
        padding: 8px 12px;
    }
    
    .category-icon, .article-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .category-header h2 {
        font-size: 22px;
    }
    
    .help-category {
        padding: 20px;
    }
    
    .article-card {
        padding: 20px;
    }
    
    .article-card h3 {
        font-size: 16px;
    }
    
    .support-option {
        padding: 20px;
    }
    
    .option-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .support-option h3 {
        font-size: 18px;
    }
}

/* Animation effects */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.help-category {
    animation: slideUp 0.5s ease forwards;
}