/**
 * PC Layout Stylesheet
 * Desktop-only sidebar layout for TopCalc
 * Optimized for wider screens with category sidebar navigation
 */

:root {
    --primary-color: #1976d2;
    --primary-dark: #1565c0;
    --text-dark: #333;
    --text-light: #666;
    --border-light: #e0e0e0;
    --bg-light: #f9f9f9;
    --bg-hover: #e8f4f8;
    --transition: 0.2s ease;
}

/* PC Layout Container */
.pc_layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    scroll-behavior: smooth;
}

/* PC Header */
.site_header_pc {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.site_header_pc .header_content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo_area_pc {
    display: flex;
    align-items: center;
}

.logo_link_pc {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color var(--transition);
}

.logo_link_pc:hover {
    color: var(--primary-color);
}

.site_logo_pc {
    height: 50px;
    width: auto;
}

.site_name_text_pc {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.search_lang_area_pc {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search_trigger_btn_pc {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.search_trigger_btn_pc:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
}

.lang_code_btn_pc {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition);
}

.lang_code_btn_pc:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
}

/* Main Container (Sidebar + Content) */
.pc_main_container {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    gap: 2rem;
    padding: 2rem;
}

/* Sidebar */
.pc_sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--bg-light);
    border-right: 1px solid var(--border-light);
    padding-right: 1.5rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    position: sticky;
    top: 80px;
    border-radius: 8px;
}

.sidebar_nav {
    display: flex;
    flex-direction: column;
}

.sidebar_title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 1rem;
    opacity: 0.7;
}

.sidebar_menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar_item {
    margin: 0;
}

.sidebar_link {
    display: block;
    padding: 0.65rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    transition: all var(--transition);
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar_link:hover {
    background: var(--bg-hover);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 1.25rem;
}

.sidebar_link.active {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
    border-left-color: var(--primary-dark);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Sidebar Footer */
.sidebar_footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.sidebar_footer_menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar_footer_menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all var(--transition);
}

.sidebar_footer_menu a:hover {
    color: var(--primary-color);
    background: var(--bg-hover);
}

/* Main Content */
.pc_main_content {
    flex: 1;
    min-width: 0;
    padding: 0;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.site_footer_pc {
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
    padding: 2rem 0;
    margin-top: auto;
}

.site_footer_pc .footer_content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer_nav_pc {
    flex: 1;
}

.footer_links_pc {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer_links_pc a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer_links_pc a:hover {
    color: var(--primary-color);
}

.copyright_pc {
    text-align: right;
    font-size: 0.85rem;
    color: #999;
}

.copyright_pc p {
    margin: 0;
}

/* Scrollbar Styling for Sidebar */
.pc_sidebar::-webkit-scrollbar {
    width: 8px;
}

.pc_sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.pc_sidebar::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}

.pc_sidebar::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* Responsive: Hide on smaller screens */
@media (max-width: 1024px) {
    .pc_main_container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .pc_sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-right: 0;
        padding-bottom: 1rem;
        position: static;
        max-height: none;
    }

    .sidebar_menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .sidebar_link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .site_header_pc .header_content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .search_lang_area_pc {
        width: 100%;
        flex-direction: row;
    }

    .site_header_pc .logo_area_pc {
        width: 100%;
        justify-content: center;
    }

    .pc_main_container {
        gap: 0;
    }

    .site_footer_pc .footer_content {
        flex-direction: column;
        text-align: center;
    }

    .copyright_pc {
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .site_header_pc,
    .site_footer_pc,
    .pc_sidebar {
        display: none;
    }

    .pc_main_container {
        padding: 0;
    }
}
