/* Guide Page Styles */
.guide-page {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background-color: var(--dark-bg);
    overflow-x: hidden;
    overflow-y: auto;
}

/* Hide scrollbars ONLY for GMod clients */
body.gmod-client .guide-page {
    /* Hide scrollbar for webkit browsers */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

body.gmod-client .guide-page::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* Hide scrollbars on body and html for guide page while keeping scrollable - GMod only */
body.gmod-client {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.gmod-client::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

html.gmod-client {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html.gmod-client::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.guide-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/textures/cooltexturebetter.png') center/cover no-repeat;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

/* Hero Background Image */
.guide-hero-bg {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 150px;
    border-radius: 12px;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.guide-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px);
    z-index: -1;
}

.guide-hero-bg::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -20px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(18, 18, 18, 0.3) 30%,
        rgba(18, 18, 18, 0.7) 70%,
        rgba(18, 18, 18, 0.95) 90%,
        rgba(18, 18, 18, 1) 100%
    );
    border-radius: 12px;
    z-index: 3;
}

/* Header Section */
.guide-header {
    position: relative;
    z-index: 10;
    padding: 0 40px 30px;
    text-align: center;
    margin-top: 120px;
}

.guide-title {
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-shadow: 
        0 0 5px rgba(255, 71, 87, 0.8),
        0 0 10px rgba(255, 71, 87, 0.6),
        0 0 15px rgba(255, 71, 87, 0.4),
        0 0 20px rgba(255, 71, 87, 0.2),
        2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.guide-title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(6px);
    opacity: 0.25;
    color: rgba(255, 255, 255, 0.7);
}

.guide-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.4;
}

/* Navigation */
.guide-nav {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 20;
    padding: 0;
}

.back-button {
    background-color: rgba(30, 30, 30, 0.95);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 0.7rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    font-family: 'Oxanium', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: fit-content;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.back-button:hover {
    background-color: rgba(40, 40, 40, 0.98);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-color);
}

.back-button:active {
    transform: translateY(0);
}

.back-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.4) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.3s, opacity 0.5s;
}

.back-button:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

.back-arrow {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.back-button:hover .back-arrow {
    transform: translateX(-3px);
}

/* Hide back button for GMod clients */
body.gmod-client .guide-nav {
    display: none;
}

/* Content Area */
.guide-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 20px 40px 40px;
    background-color: rgba(20, 20, 20, 0.85);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Content Typography */
.guide-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 24px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

.guide-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 32px 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 71, 87, 0.3);
    padding-bottom: 8px;
}

.guide-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 24px 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guide-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 16px 0;
}

.guide-content ul, .guide-content ol {
    margin: 16px 0 16px 20px;
    color: rgba(255, 255, 255, 0.9);
}

.guide-content li {
    margin: 8px 0;
    line-height: 1.5;
}

.guide-content a {
    color: #66b3ff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.guide-content a:hover {
    color: #99ccff;
    text-decoration: underline;
}

/* Step Cards */
.step-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    transition: all 0.3s ease;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.step-header {
    margin-bottom: 16px;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.step-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

/* Warning/Info Boxes */
.info-box {
    background: rgba(66, 133, 244, 0.1);
    border: 1px solid rgba(66, 133, 244, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.warning-box {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.error-box {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.info-box p, .warning-box p, .error-box p {
    margin: 0;
    font-weight: 500;
}

.info-box p {
    color: rgba(102, 179, 255, 0.9);
}

.warning-box p {
    color: rgba(255, 193, 7, 0.9);
}

.error-box p {
    color: rgba(220, 53, 69, 0.9);
}

/* Code Blocks */
.guide-content pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}

.guide-content code {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Courier New', monospace;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
}

/* Copy Code Button */
.copy-code-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Oxanium', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-code-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: scale(1.05);
}

.copy-code-btn.copied {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.4);
    color: #4caf50;
}

/* High Resolution Scaling - 1920p and above */
@media (min-width: 1920px) and (min-height: 1080px) {
    .guide-title {
        font-size: clamp(4.5rem, 5vw, 5rem);
    }
    
    .guide-subtitle {
        font-size: clamp(1.3rem, 1.4vw, 1.4rem);
    }
    
    .guide-header {
        padding: 0 50px 40px;
        margin-top: 140px;
    }
    
    .guide-hero-bg {
        height: 180px;
        top: 25px;
        left: 25px;
        right: 25px;
    }
    
    .guide-content {
        max-width: 1000px;
        padding: 30px 50px 50px;
        margin: 0 auto 50px auto;
    }
    
    .guide-content h1 {
        font-size: clamp(2.8rem, 3vw, 3rem);
    }
    
    .guide-content h2 {
        font-size: clamp(2.2rem, 2.4vw, 2.4rem);
    }
    
    .guide-content h3 {
        font-size: clamp(1.7rem, 1.8vw, 1.8rem);
    }
    
    .guide-content p {
        font-size: clamp(1.1rem, 1.2vw, 1.2rem);
        line-height: 1.7;
    }
    
    .step-card {
        padding: 30px;
        margin: 30px 0;
    }
    
    .step-title {
        font-size: clamp(1.5rem, 1.6vw, 1.6rem);
    }
    
    .step-description {
        font-size: clamp(1.1rem, 1.2vw, 1.2rem);
        line-height: 1.7;
    }
    
    .back-button {
        padding: 0.8rem 2rem;
        font-size: clamp(1.1rem, 1.2vw, 1.2rem);
        border-radius: 8px;
    }
    
    .back-arrow {
        width: 18px;
        height: 18px;
    }
}

/* 2K and 1440p scaling */
@media (min-width: 2560px) and (min-height: 1440px) {
    .guide-title {
        font-size: clamp(5.5rem, 6vw, 6rem);
    }
    
    .guide-subtitle {
        font-size: clamp(1.5rem, 1.6vw, 1.6rem);
    }
    
    .guide-header {
        padding: 0 60px 50px;
        margin-top: 160px;
    }
    
    .guide-hero-bg {
        height: 220px;
        top: 30px;
        left: 30px;
        right: 30px;
    }
    
    .guide-content {
        max-width: 1200px;
        padding: 40px 60px 60px;
        margin: 0 auto 60px auto;
    }
    
    .guide-content h1 {
        font-size: clamp(3.5rem, 3.8vw, 3.8rem);
    }
    
    .guide-content h2 {
        font-size: clamp(2.8rem, 3vw, 3rem);
    }
    
    .guide-content h3 {
        font-size: clamp(2.1rem, 2.2vw, 2.2rem);
    }
    
    .guide-content p {
        font-size: clamp(1.3rem, 1.4vw, 1.4rem);
        line-height: 1.8;
    }
    
    .step-card {
        padding: 40px;
        margin: 40px 0;
    }
    
    .step-title {
        font-size: clamp(1.8rem, 1.9vw, 1.9rem);
    }
    
    .step-description {
        font-size: clamp(1.3rem, 1.4vw, 1.4rem);
        line-height: 1.8;
    }
    
    .back-button {
        padding: 1rem 2.4rem;
        font-size: clamp(1.3rem, 1.4vw, 1.4rem);
        border-radius: 10px;
    }
    
    .back-arrow {
        width: 22px;
        height: 22px;
    }
}

/* Ultra-wide and 4K scaling */
@media (min-width: 3440px) and (min-height: 1440px) {
    .guide-title {
        font-size: 7rem;
    }
    
    .guide-subtitle {
        font-size: 1.8rem;
    }
    
    .guide-header {
        padding: 0 80px 60px;
        margin-top: 180px;
    }
    
    .guide-hero-bg {
        height: 260px;
        top: 40px;
        left: 40px;
        right: 40px;
    }
    
    .guide-content {
        max-width: 1400px;
        padding: 50px 80px 80px;
        margin: 0 auto 80px auto;
    }
    
    .guide-content h1 {
        font-size: 4.5rem;
    }
    
    .guide-content h2 {
        font-size: 3.5rem;
    }
    
    .guide-content h3 {
        font-size: 2.6rem;
    }
    
    .guide-content p {
        font-size: 1.6rem;
        line-height: 1.9;
    }
    
    .step-card {
        padding: 50px;
        margin: 50px 0;
    }
    
    .step-title {
        font-size: 2.2rem;
    }
    
    .step-description {
        font-size: 1.6rem;
        line-height: 1.9;
    }
    
    .back-button {
        padding: 1.2rem 2.8rem;
        font-size: 1.6rem;
        border-radius: 12px;
    }
    
    .back-arrow {
        width: 26px;
        height: 26px;
    }
}

/* 8K and extreme high resolution scaling */
@media (min-width: 7680px) and (min-height: 4320px) {
    .guide-title {
        font-size: 12rem;
    }
    
    .guide-subtitle {
        font-size: 3rem;
    }
    
    .guide-header {
        padding: 0 120px 100px;
        margin-top: 300px;
    }
    
    .guide-hero-bg {
        height: 400px;
        top: 60px;
        left: 60px;
        right: 60px;
    }
    
    .guide-content {
        max-width: 2000px;
        padding: 80px 120px 120px;
        margin: 0 auto 120px auto;
    }
    
    .guide-content h1 {
        font-size: 7.5rem;
    }
    
    .guide-content h2 {
        font-size: 6rem;
    }
    
    .guide-content h3 {
        font-size: 4.5rem;
    }
    
    .guide-content p {
        font-size: 2.6rem;
        line-height: 2;
    }
    
    .step-card {
        padding: 80px;
        margin: 80px 0;
    }
    
    .step-title {
        font-size: 3.6rem;
    }
    
    .step-description {
        font-size: 2.6rem;
        line-height: 2;
    }
    
    .back-button {
        padding: 1.8rem 4.2rem;
        font-size: 2.6rem;
        border-radius: 18px;
    }
    
    .back-arrow {
        width: 40px;
        height: 40px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .guide-title {
        font-size: 3.5rem;
    }
    
    .guide-hero-bg {
        height: 130px;
    }
}

@media (max-width: 900px) {
    .guide-title {
        font-size: 3rem;
    }
    
    .guide-hero-bg {
        height: 110px;
    }
    
    .guide-header {
        margin-top: 100px;
        padding: 0 20px 30px;
    }
    
    .guide-content {
        margin: 0 20px 40px;
        padding: 20px 30px 30px;
    }
}

@media (max-width: 768px) {
    .guide-title {
        font-size: 2.5rem;
    }
    
    .guide-hero-bg {
        height: 90px;
    }
    
    .guide-header {
        margin-top: 80px;
        padding: 0 15px 20px;
    }
    
    .guide-nav {
        top: 8px;
        left: 8px;
    }
    
    .guide-content {
        margin: 0 15px 30px;
        padding: 20px 20px 30px;
    }
    
    .guide-content h1 {
        font-size: 2rem;
    }
    
    .guide-content h2 {
        font-size: 1.5rem;
    }
    
    .guide-content h3 {
        font-size: 1.2rem;
    }
    
    .step-card {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
    
    .step-content {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .guide-title {
        font-size: 2rem;
    }
    
    .guide-hero-bg {
        height: 70px;
    }
    
    .guide-header {
        margin-top: 60px;
        padding: 0 10px 15px;
    }
    
    .guide-nav {
        top: 5px;
        left: 5px;
    }
    
    .back-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        border-radius: 4px;
        gap: 6px;
    }
    
    .back-arrow {
        width: 12px;
        height: 12px;
    }
    
    .guide-content {
        margin: 0 10px 20px;
        padding: 15px 15px 25px;
    }
    
    .guide-content h1 {
        font-size: 1.8rem;
    }
    
    .guide-content h2 {
        font-size: 1.3rem;
        margin: 24px 0 12px 0;
    }
    
    .guide-content h3 {
        font-size: 1.1rem;
        margin: 20px 0 10px 0;
    }
    
    .guide-content p {
        font-size: 0.9rem;
    }
    
    .step-card {
        padding: 15px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .step-title {
        font-size: 1rem;
    }
}
