/* YAP Documentation Styles */

:root {
    /* Color scheme */
    --primary-color: #6c63ff;
    --secondary-color: #4b45b2;
    --accent-color: #ff6b6b;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-color: #2d3748;
    --text-light: #718096;
    --code-bg: #f0f4f8;
    --code-text: #3182ce;
    --sidebar-width: 280px;
    --header-height: 70px;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--gradient-bg);
    color: white;
    box-shadow: var(--box-shadow);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    border-radius: 50%;
    background-color: white;
    padding: 3px;
}

.title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0 1.2rem;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-menu a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

/* Search */
.search-container {
    position: relative;
    margin-right: 1rem;
}

.search-input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border-radius: 20px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

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

.search-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.3);
    width: 220px;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
}

/* Layout */
.container {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* Sidebar styles */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--card-background);
    border-right: 1px solid #e2e8f0;
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    overflow-y: auto;
    padding: 2rem 0;
    box-shadow: inset -2px 0 5px rgba(0, 0, 0, 0.05);
}

.sidebar nav ul {
    list-style-type: none;
}

.sidebar nav li {
    margin-bottom: 0.25rem;
}

.sidebar nav .section-title {
    font-weight: 600;
    padding: 0.5rem 2rem;
    color: var(--text-color);
    cursor: pointer;
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.sidebar nav .section-title:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

.sidebar nav .subsection {
    padding: 0.35rem 2.5rem;
    display: block;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.sidebar nav a:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

.sidebar nav a.active {
    background-color: #e0e7ff;
    color: var(--primary-color);
    font-weight: 500;
    border-left: 4px solid var(--primary-color);
}

.sidebar nav .subsections {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar nav .subsections.show {
    max-height: 200px;
}

.sidebar nav .section-title.has-subsections {
    position: relative;
}

.sidebar nav .section-title.has-subsections::after {
    content: "+";
    position: absolute;
    right: 1.5rem;
    transition: transform 0.3s ease;
}

.sidebar nav .section-title.has-subsections.active::after {
    transform: rotate(45deg);
}

/* Main content */
main {
    margin-left: var(--sidebar-width);
    padding: 2rem 3rem;
    width: calc(100% - var(--sidebar-width));
}

/* Typography */
h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.5rem;
}

h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 60px;
    background: var(--accent-color);
    border-radius: 2px;
}

h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    color: var(--secondary-color);
    position: relative;
}

h2::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    width: 40px;
    background: var(--primary-color);
}

h3 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h4 {
    font-size: 1.2rem;
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.7;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Code elements */
code {
    font-family: 'Fira Code', monospace;
    background-color: var(--code-bg);
    color: var(--code-text);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

pre {
    background-color: var(--code-bg);
    padding: 1.2rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
}

pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

th, td {
    padding: 0.75rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

tr:nth-child(even) {
    background-color: #f8fafc;
}

tr:hover {
    background-color: #edf2f7;
}

/* Output box */
.output {
    background-color: #2d3748;
    color: #f8fafc;
    padding: 1.2rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-family: 'Fira Code', monospace;
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--accent-color);
}

/* Section styling */
.section {
    margin-bottom: 4rem;
    scroll-margin-top: 2rem;
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Information boxes */
.note {
    background-color: #ebf8ff;
    border-left: 4px solid #3182ce;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.tip {
    background-color: #e6fffa;
    border-left: 4px solid #38b2ac;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.warning {
    background-color: #fffaf0;
    border-left: 4px solid #dd6b20;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Badges for section numbers */
.section-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: 600;
}

/* Home page styling */
.home-hero {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 900px;
    margin: 0 auto 3rem auto;
}

.home-hero img {
    width: 180px;
    height: 180px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    border-radius: 50%;
    background-color: white;
    padding: 10px;
}

.home-hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    background: linear-gradient(45deg, #6c5ce7, #00cec9);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.home-hero h1::after {
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
}

.home-tagline {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--gradient-bg);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 2rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* About page */
.team-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.team-card {
    flex: 1;
    min-width: 250px;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.team-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.team-role {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

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

/* Contact us email styling */
.social-links[style*="flex-direction: column"] a {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.social-links[style*="flex-direction: column"] a i {
    margin-right: 8px;
}

/* Search results */
.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 200;
    margin-top: 0.5rem;
}

.search-results.show {
    display: block;
}

.search-results-item {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
}

.search-results-item:hover {
    background-color: #f1f5f9;
}

.search-results-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.search-results-item span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.search-results-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-light);
}

/* Content Sections */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.content-section.active:not(#documentation-section) {
    max-width: 1200px;
    margin: 0 auto;
}

/* Adjust main container when sidebar is hidden */
main.full-width {
    margin-left: 0;
    width: 100%;
    padding: 2rem 3rem;
}

/* Add special styling for home page and about us sections */
#home-section .section,
#about-section .section {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 99;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    main {
        margin-left: 0;
        width: 100%;
        padding: 1.5rem;
    }
    
    .menu-toggle {
        display: block;
    }

    header {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }

    .logo-container {
        margin-bottom: 1rem;
    }

    .nav-menu {
        width: 100%;
        justify-content: space-around;
    }

    .search-container {
        margin: 1rem 0;
        width: 100%;
    }

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

/* Stylish first letter */
.stylish-first-letter {
    font-size: 1.4em;
    font-weight: 700;
    color: #6c5ce7;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    font-family: 'Poppins', sans-serif;
}