/* PONGE Landing Page Styles */

:root {
    /* Core Colors */
    --color-primary: #1A1A1A;
    --color-bg: #FFFFFF;
    --color-surface: #F9F9F8;
    --color-secondary: #E5E5E1;
    --color-border: #E8E8E6;
    --color-error: #E03131;

    /* Text Colors */
    --text-primary: #1A1A1A;
    --text-secondary: #72726E;
    --text-hint: #A8A8A2;

    /* Typography */
    --font-family-base: 'Noto Sans KR', 'Noto Sans JP', sans-serif;
}

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

body {
    font-family: var(--font-family-base);
    background-color: #000;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Typography Classes */
.text-display {
    font-size: 57px;
    font-weight: 800;
    letter-spacing: -1.0px;
    line-height: 1.2;
    word-break: keep-all;
}

.text-h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0px;
}

.text-h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.text-h3 {
    font-size: 20px;
    font-weight: 600;
}

.text-body {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
}

.text-caption {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Component Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-surface);
    border-radius: 16px;
    padding: 0 24px;
    height: 58px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.2px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
}

.btn-primary:hover {
    opacity: 0.9;
}

.card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 24px;
}

.input-field {
    width: 100%;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 18px 20px;
    font-size: 16px;
    outline: none;
    color: var(--text-primary);
}

.input-field:focus {
    border-color: var(--color-primary);
    border-width: 1.5px;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    height: 60px;
    background-color: #000;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #fff;
}

/* Common Sections */
.hero {
    flex: 1;
    background-color: #000;
    padding: 120px 0;
    text-align: center;
    display: flex;
    align-items: center;
}

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

.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-logo-img {
    height: 84px;
}

.hero-logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    font-weight: 400;
    color: #fff;
}

.hero-main {
    font-size: 1.05rem;
    font-weight: 500;
    color: #fff;
    margin: 0 0 10px 0;
    letter-spacing: 0.02em;
}

.hero-sub {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 48px 0;
    letter-spacing: 0.01em;
}

.download-badges {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.download-badges-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.ponge-black-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 24px;
    background-color: #000;
    border: 2px solid #fff;
    border-radius: 10px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 12.6px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.features {
    padding: 80px 0;
    background-color: var(--color-bg);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.feature-card h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* Markdown Content Styles */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.markdown-content h1 {
    font-size: 32px;
    font-weight: 700;
}

.markdown-content h2 {
    font-size: 24px;
    font-weight: 700;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.markdown-content h3 {
    font-size: 20px;
    font-weight: 600;
}

.markdown-content p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 1rem;
    padding-left: 20px;
    color: #aaa;
}

.markdown-content li {
    margin-bottom: 0.5rem;
}

.markdown-content strong {
    color: #fff;
    font-weight: 600;
}

.markdown-content a {
    color: #6ea8fe;
}

.markdown-content a:hover {
    color: #9ec5fe;
}

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

nav a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: #fff;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid #444;
}

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 6px 32px 6px 12px;
    font-family: var(--font-family-base);
    font-size: 13px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23999999%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 10px auto;
    transition: all 0.2s;
}

.lang-select:hover,
.lang-select:focus {
    border-color: #fff;
    color: #fff;
}

.lang-select:focus {
    outline: none;
}

.lang-select option {
    background-color: #1a1a1a;
    color: #ccc;
}

/* Notices Page */
.notices-container {
    padding-top: 80px;
    padding-bottom: 80px;
}

.notices-title {
    text-align: center;
    margin-bottom: 48px;
}

.notices-empty {
    text-align: center;
    color: var(--text-hint);
    font-size: 16px;
    padding: 80px 0;
}

/* Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #222;
}

.accordion-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    text-align: left;
    gap: 16px;
    font-family: var(--font-family-base);
}

.accordion-header:hover {
    opacity: 0.8;
}

.accordion-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.accordion-category {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: #222;
    color: #aaa;
}

.accordion-category.announcement {
    background-color: #1a2a1a;
    color: #4ade80;
}

.accordion-category.maintenance {
    background-color: #2a1a1a;
    color: #f87171;
}

.accordion-title {
    font-size: 16px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.accordion-date {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text-hint);
}

.accordion-icon {
    flex-shrink: 0;
    color: var(--text-hint);
    transition: transform 0.25s ease;
}

.accordion-item.open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.open .accordion-body {
    max-height: 2000px;
}

.accordion-body-inner {
    padding: 0 0 24px 0;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid #222;
    background-color: #000;
    margin-top: auto;
}

.copyright {
    text-align: center;
    color: #666;
    font-size: 13px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .text-display {
        font-size: 40px;
    }

    .hero {
        padding: 64px 0;
    }

    .hero-logo-img {
        height: 48px;
    }

    .hero-logo-text {
        font-size: 2.5rem;
    }

    .hero-main {
        font-size: 0.88rem;
    }

    .hero-sub {
        font-size: 0.715rem;
        margin-bottom: 32px;
    }

    .hero-logo {
        margin-bottom: 24px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
        height: auto;
        padding: 16px 24px;
    }

    header {
        height: auto;
    }

    nav {
        width: 100%;
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    .lang-dropdown {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .lang-select {
        width: 100%;
        max-width: 200px;
    }
}
