/**
 * Spec Panel Styles
 * 기술스펙 패널 스타일 (크로스 브라우저 호환)
 */

/* ============================================
   Spec Panel - Glass Morphism
   ============================================ */

.spec-panel {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 66.666%;
    height: 80vh;
    /* Fallback for browsers without backdrop-filter */
    background: rgba(245, 245, 245, 0.98);
    /* Modern browsers with backdrop-filter */
    background: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: none;
    border-right: none;
    border-radius: 24px 0 0 0;
    -webkit-box-shadow: -8px -8px 32px rgba(0, 0, 0, 0.1), -2px -2px 8px rgba(0, 0, 0, 0.05);
    box-shadow: -8px -8px 32px rgba(0, 0, 0, 0.1), -2px -2px 8px rgba(0, 0, 0, 0.05);
    z-index: 200;
    overflow: hidden;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

/* Fallback for browsers without backdrop-filter support */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .spec-panel {
        background: rgba(250, 250, 250, 0.98);
    }
}

/* ============================================
   Panel Header
   ============================================ */

.spec-panel-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 1.2em 2em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    gap: 1em;
}

.spec-panel-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--charcoal);
    color: #1A1A1A;
    letter-spacing: -0.01em;
}

.spec-panel-subtitle {
    font-size: 0.9rem;
    color: var(--warm-gray);
    color: #4A4A4A;
    margin-top: 0.3em;
}

.spec-panel-close {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--warm-gray);
    color: #4A4A4A;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    padding: 0;
    margin-left: 1em;
}

/* 패널 외부 오버레이 */
.spec-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 199;
}

.spec-panel-close:hover {
    color: var(--charcoal);
    color: #1A1A1A;
}

/* ============================================
   Tab Navigation
   ============================================ */

.spec-panel-tabs {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 0.3em;
    background: transparent;
    margin-left: auto;
}

.spec-tab {
    position: relative;
    padding: 0.5em 1em;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--warm-gray);
    color: #4A4A4A;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    -webkit-transition: all 0.25s ease;
    -o-transition: all 0.25s ease;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.spec-tab:hover {
    color: var(--charcoal);
    color: #1A1A1A;
    background: rgba(0, 0, 0, 0.04);
}

.spec-tab.active {
    color: var(--deep-orange);
    color: #D35400;
    background: transparent;
}

.spec-tab::after {
    display: none;
}

/* ============================================
   Panel Content
   ============================================ */

.spec-panel-content {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    overflow-y: auto;
    padding: 2em 2.5em 3em;
    /* Firefox scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

/* WebKit scrollbar */
.spec-panel-content::-webkit-scrollbar {
    width: 6px;
}

.spec-panel-content::-webkit-scrollbar-track {
    background: transparent;
}

.spec-panel-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

/* ============================================
   Section Styles
   ============================================ */

.spec-section {
    margin-bottom: 2.5em;
}

.spec-section:last-child {
    margin-bottom: 0;
}

.spec-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--charcoal);
    color: #1A1A1A;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid transparent;
    display: inline-block;
}

.spec-section.active .spec-section-title {
    border-bottom-color: var(--deep-orange);
    border-bottom-color: #D35400;
}

.spec-section-title .num {
    color: var(--deep-orange);
    color: #D35400;
    margin-right: 0.5em;
}

.spec-subsection {
    margin-bottom: 1.8em;
}

.spec-subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--charcoal);
    color: #1A1A1A;
    margin-bottom: 0.8em;
}

/* ============================================
   Text & Typography
   ============================================ */

.spec-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--warm-gray);
    color: #4A4A4A;
}

.spec-text strong,
.spec-keyword {
    color: var(--charcoal);
    color: #1A1A1A;
    font-weight: 600;
}

.spec-highlight {
    color: var(--deep-orange);
    color: #D35400;
    font-weight: 600;
}

/* ============================================
   Lists
   ============================================ */

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0.8em 0;
}

.spec-list li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 0.5em;
    font-size: 0.95rem;
    color: var(--warm-gray);
    color: #4A4A4A;
    line-height: 1.6;
}

.spec-list li::before {
    content: '\2022'; /* • */
    position: absolute;
    left: 0;
    color: var(--deep-orange);
    color: #D35400;
    font-weight: bold;
}

/* ============================================
   Example Box
   ============================================ */

.spec-example {
    background: rgba(211, 84, 0, 0.05);
    border-left: 3px solid var(--deep-orange);
    border-left: 3px solid #D35400;
    padding: 1em 1.2em;
    margin: 1em 0;
    border-radius: 0 8px 8px 0;
}

.spec-example-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--deep-orange);
    color: #D35400;
    margin-bottom: 0.5em;
}

/* ============================================
   Tables
   ============================================ */

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 0.9rem;
}

.spec-table th,
.spec-table td {
    padding: 0.8em 1em;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.spec-table th {
    background: rgba(0, 0, 0, 0.03);
    font-weight: 600;
    color: var(--charcoal);
    color: #1A1A1A;
}

.spec-table td {
    color: var(--warm-gray);
    color: #4A4A4A;
}

.spec-table tr:hover td {
    background: rgba(211, 84, 0, 0.03);
}

/* ============================================
   Badge
   ============================================ */

.spec-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--deep-orange);
    background: #D35400;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 3px;
    margin-left: 0.5em;
    vertical-align: middle;
}

/* ============================================
   Divider
   ============================================ */

.spec-divider {
    height: 1px;
    background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.08), transparent);
    background: linear-gradient(to right, rgba(0, 0, 0, 0.08), transparent);
    margin: 2em 0;
}

/* ============================================
   Slogan
   ============================================ */

.spec-slogan {
    margin-top: 4em;
    padding: 5em 2em 6em;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: -webkit-linear-gradient(top, transparent, rgba(211, 84, 0, 0.03));
    background: linear-gradient(to bottom, transparent, rgba(211, 84, 0, 0.03));
}

.spec-slogan p {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--warm-gray);
    color: #4A4A4A;
    font-weight: 400;
}

.spec-slogan strong {
    color: var(--deep-orange);
    color: #D35400;
    font-weight: 600;
}

/* ============================================
   Large Screen Scaling (≥ 1920px)
   ============================================ */

@media (min-width: 1920px) {
    .spec-panel {
        border-radius: 32px 0 0 0;
    }

    .spec-panel-header {
        padding: 1.5em 2.5em;
    }

    .spec-panel-title {
        font-size: 1.5rem;
    }

    .spec-panel-subtitle {
        font-size: 1rem;
    }

    .spec-panel-content {
        padding: 2.5em 3em 3.5em;
    }

    .spec-section-title {
        font-size: 1.25rem;
    }

    .spec-subsection-title {
        font-size: 1.1rem;
    }

    .spec-text {
        font-size: 1.05rem;
    }

    .spec-list li {
        font-size: 1.05rem;
    }

    .spec-table {
        font-size: 1rem;
    }

    .spec-table th,
    .spec-table td {
        padding: 1em 1.2em;
    }

    .spec-example {
        padding: 1.2em 1.5em;
    }

    .spec-slogan p {
        font-size: 1.15rem;
    }
}

/* ============================================
   Large Screen Scaling (≥ 2560px)
   ============================================ */

@media (min-width: 2560px) {
    .spec-panel {
        border-radius: 40px 0 0 0;
    }

    .spec-panel-header {
        padding: 1.8em 3em;
    }

    .spec-panel-title {
        font-size: 1.7rem;
    }

    .spec-panel-subtitle {
        font-size: 1.1rem;
    }

    .spec-panel-content {
        padding: 3em 3.5em 4em;
    }

    .spec-section {
        margin-bottom: 3em;
    }

    .spec-section-title {
        font-size: 1.4rem;
    }

    .spec-subsection-title {
        font-size: 1.2rem;
    }

    .spec-text {
        font-size: 1.15rem;
    }

    .spec-list li {
        font-size: 1.15rem;
    }

    .spec-table {
        font-size: 1.1rem;
    }

    .spec-table th,
    .spec-table td {
        padding: 1.2em 1.5em;
    }

    .spec-example {
        padding: 1.5em 1.8em;
    }

    .spec-badge {
        font-size: 0.85rem;
        padding: 3px 10px;
    }

    .spec-slogan {
        padding: 6em 2.5em 7em;
    }

    .spec-slogan p {
        font-size: 1.25rem;
    }
}

/* ============================================
   Large Screen Scaling (≥ 3840px / 4K)
   ============================================ */

@media (min-width: 3840px) {
    .spec-panel {
        border-radius: 48px 0 0 0;
    }

    .spec-panel-header {
        padding: 2em 3.5em;
        gap: 1.5em;
    }

    .spec-panel-title {
        font-size: 1.9rem;
    }

    .spec-panel-subtitle {
        font-size: 1.2rem;
    }

    .spec-panel-close {
        font-size: 1.6rem;
    }

    .spec-tab {
        padding: 0.6em 1.3em;
        font-size: 1rem;
        border-radius: 8px;
    }

    .spec-panel-content {
        padding: 3em 4em 4em;
    }

    .spec-panel-content::-webkit-scrollbar {
        width: 8px;
    }

    .spec-section {
        margin-bottom: 3.5em;
    }

    .spec-section-title {
        font-size: 1.6rem;
        border-bottom-width: 3px;
    }

    .spec-subsection {
        margin-bottom: 2.2em;
    }

    .spec-subsection-title {
        font-size: 1.3rem;
    }

    .spec-text {
        font-size: 1.2rem;
    }

    .spec-list li {
        font-size: 1.2rem;
        padding-left: 1.5em;
        margin-bottom: 0.6em;
    }

    .spec-table {
        font-size: 1.15rem;
    }

    .spec-table th,
    .spec-table td {
        padding: 1.3em 1.6em;
    }

    .spec-example {
        padding: 1.6em 2em;
        border-left-width: 4px;
        border-radius: 0 10px 10px 0;
    }

    .spec-example-title {
        font-size: 1rem;
    }

    .spec-badge {
        font-size: 0.9rem;
        padding: 4px 12px;
        border-radius: 4px;
    }

    .spec-divider {
        margin: 2.5em 0;
    }

    .spec-slogan {
        padding: 7em 3em 8em;
    }

    .spec-slogan p {
        font-size: 1.35rem;
        line-height: 2.2;
    }
}

/* ============================================
   Large Screen Scaling (≥ 5120px / 5K)
   ============================================ */

@media (min-width: 5120px) {
    .spec-panel {
        border-radius: 56px 0 0 0;
    }

    .spec-panel-header {
        padding: 2.5em 4em;
        gap: 2em;
    }

    .spec-panel-title {
        font-size: 2.1rem;
    }

    .spec-panel-subtitle {
        font-size: 1.3rem;
    }

    .spec-panel-close {
        font-size: 1.8rem;
    }

    .spec-tab {
        padding: 0.7em 1.5em;
        font-size: 1.1rem;
        border-radius: 10px;
    }

    .spec-panel-content {
        padding: 3.5em 5em 5em;
    }

    .spec-panel-content::-webkit-scrollbar {
        width: 10px;
    }

    .spec-section {
        margin-bottom: 4em;
    }

    .spec-section-title {
        font-size: 1.8rem;
    }

    .spec-subsection-title {
        font-size: 1.5rem;
    }

    .spec-text {
        font-size: 1.3rem;
    }

    .spec-list li {
        font-size: 1.3rem;
    }

    .spec-table {
        font-size: 1.25rem;
    }

    .spec-table th,
    .spec-table td {
        padding: 1.5em 2em;
    }

    .spec-example {
        padding: 2em 2.5em;
        border-left-width: 5px;
        border-radius: 0 12px 12px 0;
    }

    .spec-badge {
        font-size: 1rem;
        padding: 5px 14px;
    }

    .spec-slogan {
        padding: 8em 3.5em 9em;
    }

    .spec-slogan p {
        font-size: 1.5rem;
    }
}

/* ============================================
   Large Screen Scaling (≥ 7680px / 8K)
   ============================================ */

@media (min-width: 7680px) {
    .spec-panel {
        border-radius: 72px 0 0 0;
        border-width: 2px;
    }

    .spec-panel-header {
        padding: 3em 5em;
        gap: 2.5em;
        border-bottom-width: 2px;
    }

    .spec-panel-title {
        font-size: 2.4rem;
    }

    .spec-panel-subtitle {
        font-size: 1.5rem;
    }

    .spec-panel-close {
        font-size: 2.2rem;
    }

    .spec-tab {
        padding: 0.8em 1.8em;
        font-size: 1.2rem;
        border-radius: 12px;
    }

    .spec-panel-tabs {
        gap: 0.5em;
    }

    .spec-panel-content {
        padding: 4em 6em 6em;
    }

    .spec-panel-content::-webkit-scrollbar {
        width: 12px;
    }

    .spec-panel-content::-webkit-scrollbar-thumb {
        border-radius: 6px;
    }

    .spec-section {
        margin-bottom: 5em;
    }

    .spec-section-title {
        font-size: 2rem;
        border-bottom-width: 4px;
        padding-bottom: 0.6em;
    }

    .spec-subsection {
        margin-bottom: 2.8em;
    }

    .spec-subsection-title {
        font-size: 1.7rem;
    }

    .spec-text {
        font-size: 1.5rem;
        line-height: 2;
    }

    .spec-list li {
        font-size: 1.5rem;
        padding-left: 1.8em;
        margin-bottom: 0.8em;
        line-height: 1.8;
    }

    .spec-table {
        font-size: 1.4rem;
    }

    .spec-table th,
    .spec-table td {
        padding: 1.8em 2.5em;
        border-bottom-width: 2px;
    }

    .spec-example {
        padding: 2.5em 3em;
        border-left-width: 6px;
        border-radius: 0 16px 16px 0;
        margin: 1.5em 0;
    }

    .spec-example-title {
        font-size: 1.2rem;
        margin-bottom: 0.6em;
    }

    .spec-badge {
        font-size: 1.1rem;
        padding: 6px 16px;
        border-radius: 5px;
    }

    .spec-divider {
        margin: 3em 0;
        height: 2px;
    }

    .spec-slogan {
        margin-top: 6em;
        padding: 10em 4em 12em;
        border-top-width: 2px;
    }

    .spec-slogan p {
        font-size: 1.7rem;
        line-height: 2.2;
    }
}

