/* lamp.html 전용 스타일 */

.page-title-container {
    display: grid;
    align-items: center;
    justify-content: center;
    height: 340px;
    background-image: 
    linear-gradient(rgba(18, 55, 70, 0.55), rgba(18, 55, 70, 0.45)),
    url('https://images.unsplash.com/photo-1462206092226-f46025ffe607?q=80&w=1748&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    text-align: center;
    padding-bottom: 30px;
}
.title-content .subtitle {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
}
.page-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
  margin: 10px 0 8px 0;
}
.page-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.08rem;
  margin-bottom: 0;
}

.content-container {
    display: grid;
    max-width: 900px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(30,80,180,0.08);
    padding: 44px 28px;
    margin-top: 32px;
    margin-bottom: 32px;
}
.p-content-title {
  color: #123746;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: 1px;
}
.product-feature-title {
  color: #1976b6;
  font-size: 1.13rem;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.product-feature-list {
  margin: 0 0 8px 0;
  padding-left: 18px;
}
.product-feature-list li {
  color: #222;
  font-size: 1.04rem;
  margin-bottom: 4px;
  line-height: 1.7;
}
.product-feature-list b {
  color: #123746;
  font-weight: 700;
}
.product-warning {
  background: #f7faff;
  color: #b12a2a;
  font-size: 0.98rem;
  border-left: 4px solid #1976b6;
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 24px;
  box-shadow: 0 2px 8px rgba(30,80,180,0.04);
  line-height: 1.7;
}
@media (max-width: 900px) {
  .page-title-container {
    height: 280px;
    padding-bottom: 20px;
  }
  .title-content .subtitle {
    font-size: 1rem;
  }
  .page-title {
    font-size: 2rem;
    margin: 8px 0 6px 0;
  }
  .page-description {
    font-size: 1rem;
  }
  .content-container {
    padding: 32px 20px;
    margin-top: 24px;
    margin-bottom: 24px;
    border-radius: 12px;
  }
  .p-content-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }
  .product-feature-title {
    font-size: 1.1rem;
    margin-top: 20px;
  }
  .product-feature-list li {
    font-size: 1rem;
    line-height: 1.6;
  }
  .product-warning {
    font-size: 0.95rem;
    padding: 14px 16px;
    margin-top: 20px;
  }
}
@media (max-width: 480px) {
  .page-title-container {
    height: 220px;
    padding-bottom: 16px;
  }
  .title-content .subtitle {
    font-size: 0.95rem;
  }
  .page-title {
    font-size: 1.8rem;
    margin: 6px 0 4px 0;
  }
  .page-description {
    font-size: 0.95rem;
  }
  .content-container {
    padding: 24px 16px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
  }
  .p-content-title {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }
  .product-feature-title {
    font-size: 1rem;
    margin-top: 16px;
    margin-bottom: 6px;
  }
  .product-feature-list {
    padding-left: 16px;
  }
  .product-feature-list li {
    font-size: 0.95rem;
    margin-bottom: 3px;
  }
  .product-warning {
    font-size: 0.9rem;
    padding: 12px 14px;
    margin-top: 16px;
    line-height: 1.6;
  }
}

/* 인라인 편집 스타일 */
[data-editable="true"] {
    position: relative;
    transition: all 0.2s;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    margin: 2px 0;
    background-color: transparent;
}

/* 로그인 상태일 때만 편집 관련 스타일 적용 */
body:has(.admin-logged-in) [data-editable="true"] {
    cursor: pointer;
    background-color: rgba(25, 118, 210, 0.02);
}

body:has(.admin-logged-in) [data-editable="true"]:hover {
    background-color: rgba(25, 118, 210, 0.08);
    border-color: rgba(25, 118, 210, 0.3);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1);
}

body:has(.admin-logged-in) [data-editable="true"].editing {
    background-color: #fff;
    border-color: #1976d2;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
    padding: 8px 40px 8px 12px;
}

.edit-button {
    display: none;
}

body:has(.admin-logged-in) .edit-button {
    display: flex;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(25, 118, 210, 0.3);
    color: #1976d2;
    cursor: pointer;
    padding: 6px;
    opacity: 0;
    transition: all 0.2s;
    z-index: 1;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body:has(.admin-logged-in) .edit-button:hover {
    color: #1976d2;
    background-color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

body:has(.admin-logged-in) [data-editable="true"]:hover .edit-button {
    opacity: 1;
}

.edit-controls {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

[data-editable="true"].editing .edit-controls {
    opacity: 1;
}

.edit-controls button {
    background: #fff;
    border: 1px solid #1976d2;
    color: #1976d2;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: all 0.2s;
}

.edit-controls button:hover {
    background: #1976d2;
    color: #fff;
}

.edit-controls .save-btn {
    background: #1976d2;
    color: #fff;
}

.edit-controls .save-btn:hover {
    background: #1565c0;
}

.edit-controls .cancel-btn {
    background: #fff;
    color: #dc3545;
    border-color: #dc3545;
}

.edit-controls .cancel-btn:hover {
    background: #dc3545;
    color: #fff;
}

/* 에디터 도구 모음 스타일 */
.editor-tools {
    position: absolute;
    top: -40px;
    left: 0;
    display: flex;
    gap: 8px;
    padding: 8px;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
}

[data-editable="true"].editing .editor-tools {
    opacity: 1;
}

.tool-group {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 2px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.tool-btn {
    padding: 4px 8px;
    border: 1px solid #e9ecef;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
}

.tool-btn:hover {
    background-color: #f8f9fa;
    border-color: #1976d2;
    color: #1976d2;
}

.tool-btn.active {
    background-color: #1976d2;
    border-color: #1976d2;
    color: white;
}

.font-size-select,
.font-family-select {
    padding: 4px 8px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background-color: white;
    color: #495057;
    min-width: 100px;
    height: 28px;
}

.color-picker,
.bg-color-picker {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .editor-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .tool-group {
        justify-content: center;
    }
} 