/* 기술스펙 버튼 */
.spec-btn {
    position: fixed;
    bottom: 4vh;
    right: 5vw;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(211, 84, 0, 0.1);
    border: 1px solid rgba(211, 84, 0, 0.3);
    border-radius: 4px;
    color: var(--deep-orange);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100;
}

.spec-btn:hover {
    background: rgba(211, 84, 0, 0.2);
    border-color: rgba(211, 84, 0, 0.5);
}

.spec-btn::before {
    content: '▲';
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.spec-btn.active::before {
    transform: rotate(180deg);
}

/* 기술스펙 패널 - 글래스모피즘 */
.spec-panel {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 66.666%;
    height: 80vh;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-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;
    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: flex;
    flex-direction: column;
}

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

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

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

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

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

/* 패널 외부 오버레이 */
.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-tabs {
    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);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

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

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

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

.spec-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 2em 2.5em 3em;
}

.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;
}

/* 스펙 문서 스타일 */
.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);
    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);
}

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

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

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

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

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

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

.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);
    line-height: 1.6;
}

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

.spec-example {
    background: rgba(211, 84, 0, 0.05);
    border-left: 3px solid var(--deep-orange);
    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);
    margin-bottom: 0.5em;
}

.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);
}

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

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

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

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

/* 하단 슬로건 */
.spec-slogan {
    margin-top: 4em;
    padding: 5em 2em 6em;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    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);
    font-weight: 400;
}

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

/* 텍스트 하이라이트 (형광펜) */
.spec-user-highlight {
    background: rgba(255, 230, 0, 0.45);
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-decoration-break: clone;
}

.spec-user-highlight:hover {
    background: rgba(255, 220, 0, 0.75);
    box-shadow: 0 0 0 2px rgba(255, 200, 0, 0.3);
}

/* 형광펜 툴팁 버튼 */
.spec-highlight-tooltip {
    position: absolute;
    display: flex;
    gap: 4px;
    background: #1A1A1A;
    border-radius: 6px;
    padding: 6px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.spec-highlight-tooltip button {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.spec-highlight-tooltip button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.spec-highlight-tooltip .highlight-btn {
    color: #FFE600;
}

.spec-highlight-tooltip .remove-btn {
    color: #FF6B6B;
}
