/* Telcoin Community Guide - Main Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0066cc;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0066cc;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-container {
    max-width: 600px;
    margin: 2rem auto 0;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    outline: none;
    transition: transform 0.3s ease;
}

.search-box:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

#searchDropdown {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: #fff;
    border: 2px solid #0066cc;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    margin-top: 0.5rem;
    max-width: 600px;
    min-width: 320px;
    padding: 0.5rem 0;
    display: none;
    font-size: 1.08rem;
}

.search-dropdown-item {
    display: block;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid #e0e7ef;
    color: #0066cc;
    background: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, text-decoration 0.2s;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover, .search-dropdown-item:focus {
    background: #e8f2ff;
    color: #004499;
    text-decoration: underline;
    outline: none;
}

#searchDropdown .highlight {
    background-color: #fffae0;
    color: #c00;
    border-radius: 3px;
    padding: 0 2px;
}

/* Main Content */
.main-content {
    background: white;
    margin-top: -2rem;
    border-radius: 20px 20px 0 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.content-wrapper {
    padding: 3rem 0;
}

/* Getting Started Section */
.getting-started {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    padding: 3rem 0;
    margin-bottom: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.getting-started h2 {
    color: #0066cc;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.checklist-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.checklist-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.checklist-item h3 {
    color: #0066cc;
    margin-bottom: 0.5rem;
}

/* FAQ Sections */
.faq-section {
    margin-bottom: 3rem;
}

.faq-section h2 {
    color: #0066cc;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #0066cc, #004499);
    border-radius: 2px;
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background: white;
    border: 1px solid rgba(0, 102, 204, 0.1);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item.hidden {
    display: none;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #0066cc;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #e8f2ff 0%, #f8f9ff 100%);
}

.faq-question h3 {
    color: #0066cc;
    font-size: 1.2rem;
    margin: 0;
    padding-right: 1rem;
}

.faq-toggle {
    color: #0066cc;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 2000px;
}

.faq-answer-content {
    padding: 1.5rem;
    line-height: 1.8;
}

.faq-answer-content p {
    margin-bottom: 1rem;
}

.faq-answer-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.faq-answer-content li {
    margin-bottom: 0.5rem;
}

/* Categories */
.category-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    color: #0066cc;
    border: 2px solid #0066cc;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
    font-family: inherit;
}

.category-btn:hover,
.category-btn.active {
    background: #0066cc;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #0066cc;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #0066cc;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

.disclaimer {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    border-left: 4px solid #ffcc00;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #0066cc;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .nav-links {
        display: none; /* Hide by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust as needed to be below the header */
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 102, 204, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex; /* Show when 'active' class is present */
    }

    .nav-links li {
        text-align: center;
        margin: 0.5rem 0;
    }

    .nav-links a {
        padding: 0.8rem 0;
        display: block;
        width: 100%;
    }

    .mobile-menu-btn {
        display: block; /* Show the button on mobile */
    }

    .checklist {
        grid-template-columns: 1fr;
    }

    .category-nav {
        flex-direction: column;
        align-items: center;
    }

    .category-btn {
        width: 80%;
        text-align: center;
    }

    .faq-question h3 {
        font-size: 1rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Highlight effect for search */
.highlight {
    background-color: yellow;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Deep Dive Styles */
.deep-dive-section {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.deep-dive-section h3 {
    color: #0066cc;
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.deep-dive-section h3:first-child {
    margin-top: 0;
}

.deep-dive-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #0066cc, #004499);
    border-radius: 2px;
}

.deep-dive-section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #444;
}

.deep-dive-section ul, 
.deep-dive-section ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #444;
}

.deep-dive-section li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.deep-dive-section strong {
    color: #0066cc;
}

.governance-table,
.platform-table,
.resources-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #f8f9ff;
    border-radius: 8px;
    overflow: hidden;
}

.governance-table th,
.platform-table th,
.resources-table th {
    background: #0066cc;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 500;
}

.governance-table td,
.platform-table td,
.resources-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
}

.governance-table tr:last-child td,
.platform-table tr:last-child td,
.resources-table tr:last-child td {
    border-bottom: none;
}

.governance-table tr:hover td,
.platform-table tr:hover td,
.resources-table tr:hover td {
    background: rgba(0, 102, 204, 0.05);
}

#deepDiveContent {
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .deep-dive-section {
        padding: 1rem;
    }

    .governance-table,
    .platform-table,
    .resources-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .deep-dive-section h3 {
        font-size: 1.3rem;
    }
}

.community-links {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 102, 204, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.community-link {
    display: block;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: #333;
    background: white;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.community-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.1);
    border-color: #0066cc;
}

.community-link:last-child {
    margin-bottom: 0;
}