/* =======================
   Base/Common Styles
   ======================= */

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

body {
    background: #ffffff;
    color: #000000;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container { 
    max-width: 500px; 
    width: 100%; 
    margin: 0 auto;
    border: 2px solid #000000;
    padding: 40px 30px;
    border-radius: 0;
}

h1 { 
    font-size: 28px; 
    font-weight: 700; 
    margin-bottom: 20px;
    color: #000000;
    text-align: center;
}

h2 { 
    font-size: 20px; 
    font-weight: 600; 
    margin: 25px 0 15px 0;
    color: #000000;
}

p { 
    font-size: 16px; 
    line-height: 1.6; 
    margin-bottom: 20px; 
    color: #000000;
}

/* Common Button Styles */
.cta-button {
    background: #FFD60A;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 0;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
    margin: 8px;
}

.cta-button:hover { 
    background: #FFC107;
}

/* =======================
   Landing Page Styles
   ======================= */

.landing-page {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.landing-page .container {
    max-width: 400px;
}

.landing-page .logo { 
    font-size: 48px; 
    margin-bottom: 30px; 
}

.landing-page h1 {
    margin-bottom: 20px;
}

.landing-page p {
    font-size: 16px; 
    line-height: 1.5; 
    margin-bottom: 30px; 
}

.telegram-button {
    background: #FFD60A;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 0;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
    width: 100%;
    max-width: 280px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.telegram-button:hover { 
    background: #FFC107;
}

.note {
    margin-top: 25px;
    font-size: 14px;
    color: #666666;
    max-width: 320px;
    line-height: 1.4;
}

/* =======================
   Header Styles
   ======================= */

.page-header {
    background: #ffffff;
    padding: 20px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-container {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Desktop Header Layout */
.desktop-header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.desktop-header {
    display: block;
}

/* Mobile Header Layout */
.mobile-header {
    display: none;
}

.mobile-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mobile-top-row .header-logo {
    justify-self: flex-start;
}

.mobile-top-row .nav-cta {
    justify-self: flex-end;
}

.mobile-nav {
    display: flex;
    gap: 25px;
    justify-content: center;
}

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

.logo-image {
    width: 32px;
    height: 32px;
    display: block;
}

/* Retina support for logo */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .logo-image {
        width: 32px;
        height: 32px;
    }
}

.logo-text {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #000000;
}

.nav-link.active {
    color: #000000;
    font-weight: 600;
}

.nav-cta {
    background: #FFD60A;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 0;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.nav-cta:hover {
    background: #FFC107;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    /* Hide desktop header, show mobile header */
    .desktop-header {
        display: none;
    }
    
    .mobile-header {
        display: block;
        padding-top: 0px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .nav-cta {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    /* Mobile Title Styles */
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    h3 {
        font-size: 16px;
    }
    
    .content-page .logo {
        font-size: 40px;
    }
    
    .landing-page .logo {
        font-size: 40px;
    }
}

/* =======================
   About & Changelog Page Styles
   ======================= */

.content-page {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.content-page.about-page {
    text-align: center;
    min-height: 100vh;
}

.content-page.about-page .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px); /* Account for header height */
}

.content-page .container {
    max-width: 700px;
}

.content-page .logo {
    font-size: 48px; 
    margin-bottom: 20px; 
    text-align: center;
}

.content-page h1 {
    margin-bottom: 30px;
}

.content-page .intro {
    text-align: center;
    font-style: italic;
    color: #555555;
    margin-bottom: 30px;
}

.content-page p {
    text-align: left;
}

.content-page .cta-button {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* =======================
   About Page Specific Styles
   ======================= */

.links-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #cccccc;
}

.inline-links {
    text-align: center;
    margin: 15px 0;
}

.inline-links a {
    color: #007AFF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.inline-links a:hover {
    color: #0051D5;
    text-decoration: underline;
}

.contact-info {
    margin-top: 20px;
    font-size: 14px;
    color: #666666;
}

.cta-footer {
    margin-top: 30px;
    text-align: center;
}

/* =======================
   Changelog Page Specific Styles
   ======================= */

.changelog-entry {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.changelog-entry:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.entry-date {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 15px;
}

.changes {
    list-style: none;
    padding: 0;
}

.changes li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 15px;
    color: #000000;
}

.changes li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #666666;
    font-weight: bold;
}

.cta-text {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666666;
}