/* 【鳴白用】商品販売状況管理 - フロントエンドスタイル */

.nakihaku-ps-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    max-width: 1200px;
    margin: 20px auto;
    padding: 40px;
    border-radius: 8px;
    color: #d4af37;
}

.nakihaku-ps-title {
    color: #d4af37;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
}

.nakihaku-ps-notice {
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid #d4af37;
    color: #d4af37;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
}

.nakihaku-ps-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 商品アイテム */
.nakihaku-ps-item {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.nakihaku-ps-item:hover {
    border-color: #d4af37;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

/* ヘッダー */
.nakihaku-ps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: rgba(42, 42, 42, 0.5);
    transition: background-color 0.3s ease;
}

.nakihaku-ps-header:hover {
    background: rgba(58, 58, 58, 0.7);
}

.nakihaku-ps-header-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nakihaku-ps-product-title {
    color: #d4af37;
    font-size: 20px;
    margin: 0;
    font-weight: 300;
    letter-spacing: 1px;
}

.nakihaku-ps-end-date {
    color: #ff6b6b;
    font-size: 14px;
    background: rgba(42, 26, 26, 0.8);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 107, 107, 0.5);
}

.nakihaku-ps-end-date-label {
    font-weight: 500;
    margin-right: 5px;
}

.nakihaku-ps-toggle-icon {
    color: #d4af37;
    font-size: 18px;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.nakihaku-ps-item.active .nakihaku-ps-toggle-icon {
    transform: rotate(180deg);
}

/* コンテンツ（アコーディオン） */
.nakihaku-ps-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nakihaku-ps-item.active .nakihaku-ps-content {
    max-height: 1000px;
}

/* テーブル */
.nakihaku-ps-table {
    width: calc(100% - 40px);
    border-collapse: collapse;
    margin: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.nakihaku-ps-table thead {
    background: linear-gradient(135deg, #3a3a3a 0%, #2d2d2d 100%);
    border-bottom: 2px solid #d4af37;
}

.nakihaku-ps-table th {
    color: #d4af37;
    padding: 15px;
    text-align: left;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.nakihaku-ps-table td {
    color: #c0c0c0;
    padding: 15px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.nakihaku-ps-table tbody tr {
    transition: background 0.2s ease;
}

.nakihaku-ps-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.1) !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .nakihaku-ps-container {
        padding: 20px;
    }
    
    .nakihaku-ps-title {
        font-size: 24px;
    }
    
    .nakihaku-ps-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .nakihaku-ps-product-title {
        font-size: 18px;
    }
    
    .nakihaku-ps-table {
        font-size: 14px;
    }
    
    .nakihaku-ps-table th,
    .nakihaku-ps-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .nakihaku-ps-table {
        font-size: 12px;
    }
    
    .nakihaku-ps-table th,
    .nakihaku-ps-table td {
        padding: 8px;
    }
    
    .nakihaku-ps-end-date {
        font-size: 12px;
        padding: 4px 8px;
    }
}
