/* Tyrian Lens Website - Core Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --text-primary: #e2c07d;
    --text-bright: #ffffff;
    --bg-dark: #050403;
    --bg-panel: rgba(13, 10, 7, 0.95);
    --bg-button: #1a1510;
    --bg-button-hover: #e2c07d;
    --text-button-hover: #1a1510;
    --border-color: #4a3b2a;
    --border-highlight: #e2c07d;
    --success-color: #4ae25b;
    --danger-color: #ff4a4a;
    --text-muted: #8a7a5f;
    --glow-color: rgba(226, 192, 125, 0.2);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
    --container-width: 1200px;
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(74, 59, 42, 0.15) 0%, transparent 70%),
        radial-gradient(circle at 100% 100%, rgba(26, 21, 16, 0.2) 0%, transparent 55%);
    color: var(--text-bright);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #020101;
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: 0.2s ease;
}
a:hover {
    color: var(--text-bright);
    text-shadow: 0 0 8px var(--glow-color);
}

/* Layout Elements */
header {
    border-bottom: 1px solid var(--border-color);
    background: rgba(5, 4, 3, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 0 6px var(--border-highlight));
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    color: var(--text-primary);
    letter-spacing: 2px;
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-bright);
    border-bottom-color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 12px 28px;
    background: var(--bg-button);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--bg-button-hover);
    color: var(--text-button-hover);
    border-color: var(--border-highlight);
    box-shadow: 0 0 15px var(--glow-color);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #2a221a 0%, #1a1510 100%);
    border-color: var(--border-highlight);
}

.btn-secondary {
    background: transparent;
}

/* Sections */
.section {
    padding: 80px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--text-primary);
    margin: 15px auto 0;
    box-shadow: 0 0 6px var(--text-primary);
}

/* Glass Panels */
.glass-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 1px solid rgba(226, 192, 125, 0.03);
    pointer-events: none;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    min-height: calc(85vh - 73px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.hero-content {
    max-width: 800px;
}

.hero-logo {
    width: 140px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 20px rgba(226, 192, 125, 0.35));
    animation: pulseLogo 3s ease-in-out infinite;
}

@keyframes pulseLogo {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(226, 192, 125, 0.25)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 30px rgba(226, 192, 125, 0.45)); transform: scale(1.02); }
}

.hero-title {
    font-size: 54px;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(226, 192, 125, 0.4);
    font-weight: 900;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-highlight);
    box-shadow: 0 10px 25px rgba(226, 192, 125, 0.08);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(226, 192, 125, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--text-primary);
    border-color: var(--text-primary);
    box-shadow: 0 0 15px var(--glow-color);
}

.feature-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.feature-card:hover .feature-icon {
    filter: brightness(0.1);
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Modules Section styling with custom App Bar Navigation */
.modules-showcase {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

@media(max-width: 900px) {
    .modules-showcase {
        grid-template-columns: 1fr;
    }
}

.app-sidebar-mock {
    display: flex;
    flex-direction: column;
    background: #0a0805;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    gap: 4px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
    max-height: 80vh;
    overflow-y: auto;
}

.app-sidebar-mock::-webkit-scrollbar {
    width: 4px;
}
.app-sidebar-mock::-webkit-scrollbar-track {
    background: transparent;
}
.app-sidebar-mock::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.app-nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px 12px;
    gap: 12px;
    width: 100%;
    text-align: left;
}

.app-nav-item span {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.app-nav-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.65;
    transition: opacity 0.2s, transform 0.2s;
}

.app-nav-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.app-nav-item:hover span {
    color: var(--text-primary);
}

.app-nav-item:hover {
    background: rgba(226, 192, 125, 0.05);
    border-color: rgba(226, 192, 125, 0.15);
}

.app-nav-item.active {
    background: rgba(226, 192, 125, 0.08);
    border-color: var(--border-highlight);
    box-shadow: 0 0 10px rgba(226, 192, 125, 0.2);
}

.app-nav-item.active img {
    opacity: 1;
    filter: drop-shadow(0 0 5px var(--border-highlight));
}

.app-nav-item.active span {
    color: var(--text-bright);
    text-shadow: 0 0 8px var(--glow-color);
}


/* Module details content panel */
.module-content-panel {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.module-content-panel.active {
    display: block;
}

.module-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media(max-width: 900px) {
    .module-detail-layout {
        grid-template-columns: 1fr;
    }
}

.module-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.module-info h2 img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.module-desc {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.7;
}

.module-features-list {
    margin-bottom: 25px;
}

.module-features-list h4 {
    margin-bottom: 12px;
    font-size: 14px;
}

.module-features-list ul {
    list-style: none;
}

.module-features-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-bright);
}

.module-features-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--text-primary);
}

.module-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.badge {
    background: rgba(226, 192, 125, 0.05);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    font-size: 12px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

/* Image Showcase */
.module-image-showcase {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.module-image-showcase img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.module-image-showcase:hover img {
    transform: scale(1.03);
}

.image-overlay-prompt {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 20px;
    text-align: center;
    color: var(--text-primary);
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-image-showcase:hover .image-overlay-prompt {
    opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(0,0,0,0.9);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: var(--text-primary);
    font-size: 32px;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--text-bright);
}

/* Download Page */
.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media(max-width: 900px) {
    .download-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.download-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px;
    background: rgba(26, 21, 16, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    height: 100%;
}

.download-box:hover {
    border-color: var(--border-highlight);
    box-shadow: 0 5px 15px rgba(226, 192, 125, 0.05);
}

.download-info-text {
    margin-bottom: 20px;
}

.download-info-text h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.download-info-text p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.prereqs-list {
    margin-top: 20px;
}

.prereq-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(74, 59, 42, 0.3);
}

.prereq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.prereq-num {
    background: var(--bg-button);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 12px;
    flex-shrink: 0;
}

.prereq-detail h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.prereq-detail p {
    font-size: 13px;
    color: var(--text-muted);
}

.prereq-detail a {
    text-decoration: underline;
}

/* Steps list styling */
.setup-step {
    margin-bottom: 40px;
}

.setup-step h3 {
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.setup-step p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 15px;
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.permission-badge {
    background: #0d0a07;
    border: 1px solid var(--border-color);
    padding: 12px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--text-primary);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    background: #020101;
    padding: 50px 20px 30px;
    text-align: center;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 1px;
}

.footer-disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 25px;
    line-height: 1.8;
}

.footer-donation {
    font-size: 13px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.footer-credits {
    font-size: 12px;
    color: #4a3b2a;
}

/* Mobile responsive menu */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
}

@media(max-width: 768px) {
    header .header-container {
        flex-wrap: wrap;
    }
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
        gap: 12px;
        padding-bottom: 10px;
    }
    nav.open {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Image Gallery and Thumbnails */
.module-image-gallery {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 72px;
    height: 48px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all 0.2s ease;
    background: #020101;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.gallery-thumb:hover img, .gallery-thumb.active img {
    opacity: 1;
}

.gallery-thumb:hover, .gallery-thumb.active {
    border-color: var(--border-highlight);
    box-shadow: 0 0 8px var(--glow-color);
}

.gallery-thumb.placeholder {
    border: 1px dashed #6a533b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 500;
}

.gallery-thumb.placeholder:hover {
    border-color: var(--border-highlight);
    color: var(--text-primary);
    background: rgba(226, 192, 125, 0.03);
}

/* Showcase Banner Styling */
.showcase-banner {
    width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border-radius: 4px;
    display: block;
    margin: 0 auto;
    transition: border-color 0.3s;
}
.showcase-banner:hover {
    border-color: var(--border-highlight);
}

/* Discord Button & Icon */
.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(226, 192, 125, 0.4));
}

/* Permission Badges with Tooltips */
.permission-badge {
    position: relative;
    cursor: help;
}

.permission-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(15, 12, 10, 0.98);
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 12px;
    white-space: normal;
    width: 250px;
    text-align: left;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    font-family: var(--font-body);
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.8);
    line-height: 1.4;
    border-radius: 2px;
}

.permission-badge:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}



