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

html, body {
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI','Helvetica Neue',Helvetica,Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans',sans-serif;
    font-size: 1em;
    line-height: 1.6;
    color: #d4c5c5;
    background: linear-gradient(
        to bottom,
        #4a0b1f 0%,
        #3a0918 30%,
        #2b0612 60%,
        #0a0205 100%
    );
    min-height: 100vh;
}

@font-face {
    font-family: 'Anderson';
    src: url('anderson.ttf');
}

/* Background Character */
.yakuza {
    position: fixed;
    width: 100%;
    height: 90%;
    bottom: 0;
    right: 0;
    background-image: url("images/yakuza_01.png");
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: right 0;
    filter: drop-shadow(-5px 0 15px rgba(0, 0, 0, .8));
    pointer-events: none;
    z-index: 1;
    opacity: 0.9;
}

/* Main Layout Container */
.layout-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(20, 8, 12, 0.9);
    border-right: 1px solid rgba(139, 35, 50, 0.5);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 10;
}

.sidebar-header {
    padding: 30px 25px;
    border-bottom: 1px solid rgba(139, 35, 50, 0.3);
    text-align: center;
}

.logo-title {
    font-family: 'Anderson', serif;
    font-size: 28px;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 5px;
    color: #fcea9f;
    background: linear-gradient(#ff824a 35%, #fcea9f 65%);
    background-clip: text;
    -webkit-text-fill-color: rgba(0,0,0,0);
}

.logo-subtitle {
    font-size: 13px;
    color: #fcea9f;
    letter-spacing: 1px;
    font-weight: 300;
}

/* Navigation */
.nav-menu {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 14px 25px;
    color: #c4a5a5;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(139, 35, 50, 0.2);
    color: #e8d4a0;
    border-left-color: #8b2332;
}

.nav-link.active {
    background: rgba(139, 35, 50, 0.3);
    color: #e8d4a0;
    border-left-color: #d4af6a;
}

.nav-item i {
    margin-right: 12px;
    fill: currentColor;
}

.nav-arrow {
    margin-left: auto;
    font-size: 12px;
}

/* Sub Navigation */
.sub-nav {
    background: rgba(10, 2, 5, 0.5);
    padding: 5px 0;
}

.sub-nav-link {
    display: flex;
    align-items: center;
    padding: 10px 25px 10px 57px;
    color: #a58e8e;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sub-nav-link:hover {
    color: #d4af6a;
    background: rgba(139, 35, 50, 0.15);
}

.sub-nav-link::before {
    content: ">";
    margin-right: 10px;
    color: #8b2332;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(139, 35, 50, 0.3);
    font-size: 11px;
    color: #6d5757;
    line-height: 1.5;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px 60px;
    max-width: 1400px;
}

.page-header {
    font-family: "Cinzel", serif;
    font-size: 36px;
    font-weight: 600;
    color: #d4af6a;
    margin-bottom: 30px;
    letter-spacing: 1px;
    border-bottom: 1px solid;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 40px;
}

.welcome-title {
    font-family: "Cinzel", serif;
    font-size: 24px;
    font-weight: 600;
    color: #e8d4a0;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.welcome-text {
    color: #b4a5a5;
    line-height: 1.8;
    max-width: 800px;
}

/* Featured Card */
.featured-card {
    background: linear-gradient(135deg, rgba(139, 35, 50, 0.2) 0%, rgba(75, 20, 35, 0.3) 100%);
    border: 1px solid rgba(139, 35, 50, 0.5);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.featured-card:hover {
    border-color: rgba(212, 175, 106, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.featured-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.featured-icon {
    width: 50px;
    height: 50px;
    background: rgba(139, 35, 50, 0.5);
    border: 1px solid rgba(139, 35, 50, 0.7);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 20px;
}

.featured-title {
    font-family: "Cinzel", serif;
    font-size: 26px;
    font-weight: 600;
    color: #e8d4a0;
    letter-spacing: 1px;
}

.featured-description {
    color: #a58e8e;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.7;
}

.featured-link {
    color: #d4af6a;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.featured-link::before {
    content: "> ";
    margin-right: 5px;
}

.featured-link:hover {
    color: #e8d4a0;
    transform: translateX(5px);
}

/* Tool Cards Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.tool-card {
    background: rgba(30, 15, 20, 0.6);
    border: 1px solid rgba(139, 35, 50, 0.4);
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: rgba(212, 175, 106, 0.4);
    background: rgba(40, 20, 25, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.tool-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.tool-icon {
    width: 45px;
    height: 45px;
    background: rgba(139, 35, 50, 0.3);
    border: 1px solid rgba(139, 35, 50, 0.5);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 22px;
}

.tool-title {
    font-family: "Cinzel", serif;
    font-size: 20px;
    font-weight: 600;
    color: #d4af6a;
    letter-spacing: 1px;
}

.tool-description {
    color: #9d8888;
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.tool-link {
    color: #c49a6a;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    display: inline-block;
}

.tool-link::before {
    content: "> ";
    margin-right: 5px;
}

.tool-link:hover {
    color: #e8d4a0;
    transform: translateX(5px);
}

/* Guides Section */
.section-title {
    font-family: "Cinzel", serif;
    font-size: 20px;
    font-weight: 600;
    color: #d4af6a;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.guide-card {
    background: rgba(30, 15, 20, 0.6);
    border: 1px solid rgba(139, 35, 50, 0.4);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
}

.guide-card:hover {
    border-color: rgba(212, 175, 106, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.guide-image {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(139, 35, 50, 0.3), rgba(75, 20, 35, 0.5));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(212, 175, 106, 0.3);
}

.guide-content {
    padding: 20px;
    flex: 1;
}

.guide-title {
    font-family: "Cinzel", serif;
    font-size: 18px;
    font-weight: 600;
    color: #d4af6a;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.guide-description {
    color: #9d8888;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.guide-date {
    color: #6d5757;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 1200px) {
    .main-content {
        padding: 30px 40px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .tools-grid,
    .guides-grid {
        grid-template-columns: 1fr;
    }
}

section a {
    color: #d6a969;
    text-decoration: none;
}

section a:hover {
    color: #e5a040;
    text-decoration: none;
}

section ul {
    margin-left: 25px;
    margin-top: 5px;
    margin-bottom: 5px;
}

pre {
    max-width: 900px;
    padding-left: 15px;
    overflow: scroll;
}

:root {
    --color-canvas-subtle: ;
}

.gitHubCodebox {
    background: black;
    border-radius: 3px;
    border: 1px solid var(--borderColor-default);
    margin: 1em 0 1.2em 0;
    max-width: 900px;
}

.codebox_header {
    padding: 5px 10px;
    color: var(--fgColor-muted);
    border-bottom: 1px solid var(--borderColor-default);
    display: flex;
    justify-content: space-between;
}

.codebox {
    background-color: unset;
    border-color: unset;
    margin: 0;
}

.copy-button {
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.copy-button i {
    transition: color 0.2s;
    padding: 4px;
    padding-right: 4px;
}

.copy-button i:hover {
    background: #3e434c;
    border-radius: 3px;
}

.copy-status {
    position: absolute;
    left: -300%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0.5em;
    background: #3e434c;
    color: white;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.75em;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.copy-button.copied i {
    color: #2ea44f;
}

.copy-button.copied .copy-status {
    opacity: 1;
}

:not(pre)>code[class*=language-], pre[class*=language-] {
    background: #470b1e!important;
    border-radius: 5px;
    border: 1px solid color(srgb 0.475 0.0926 0.2098);
    font-size: 0.8em!important;
}

b.important {
    color: rgb(231, 47, 47)!important;
}

hr {
    border: none;
    height: 1px;
    box-shadow: 0 5px 2px rgba(0, 0, 0, 0.8);
    margin: 24px 0;
}


/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 2, 5, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 35, 50, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 35, 50, 0.7);
}